diff options
| author | jc0b <j@jc0b.computer> | 2020-08-03 16:30:49 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:48:49 +0200 |
| commit | 78ac5e7254cf1549ec2bd75637c2301d98002063 (patch) | |
| tree | 2edc35ee737a6e6a3cbcb806b795ebbaf4a8c117 /api/opendc/models | |
| parent | e73fd6a9b21dddf0ac324d30ab3e151bc7eddb98 (diff) | |
Fixed pylint error
Diffstat (limited to 'api/opendc/models')
| -rw-r--r-- | api/opendc/models/prefab.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/api/opendc/models/prefab.py b/api/opendc/models/prefab.py index 3d5dcf54..e1671dc1 100644 --- a/api/opendc/models/prefab.py +++ b/api/opendc/models/prefab.py @@ -28,5 +28,10 @@ class Prefab(Model): # OpenDC-authored objects don't necessarily have an authorId # return - def get_all(query): - return DB.fetch_all(query, Prefab.collection_name) + +def query_all(query): + """Returns a list of all prefabs matching the query. + + :param query: the query to execute on the db. + """ + return DB.fetch_all(query, Prefab.collection_name) |
