diff options
| author | jc0b <j@jc0b.computer> | 2020-08-03 16:41:23 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:48:49 +0200 |
| commit | c5f7d4c20a12d226fdae3cd6806b67c967bc3277 (patch) | |
| tree | 33bab9f95ec4cb8bdf9228a5bf30161fcdae147d /api/opendc/models | |
| parent | 78ac5e7254cf1549ec2bd75637c2301d98002063 (diff) | |
Removed query_all in prefabs/authorizations in favour of a direct fetch_all on DB
Diffstat (limited to 'api/opendc/models')
| -rw-r--r-- | api/opendc/models/prefab.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/api/opendc/models/prefab.py b/api/opendc/models/prefab.py index e1671dc1..edf1d4c4 100644 --- a/api/opendc/models/prefab.py +++ b/api/opendc/models/prefab.py @@ -1,6 +1,5 @@ from opendc.models.model import Model from opendc.models.user import User -from opendc.util.database import DB from opendc.util.exceptions import ClientError from opendc.util.rest import Response @@ -27,11 +26,3 @@ class Prefab(Model): #except KeyError: # OpenDC-authored objects don't necessarily have an authorId # return - - -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) |
