diff options
| author | jc0b <j@jc0b.computer> | 2020-07-30 21:48:23 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:48:48 +0200 |
| commit | e73fd6a9b21dddf0ac324d30ab3e151bc7eddb98 (patch) | |
| tree | 77a9ea53832c8f97f5bc818679c1db7062b083fd /api/opendc/models/prefab.py | |
| parent | c8c6519551cef8b82b55e3e5866b35156c89e6b1 (diff) | |
Hopefully improved performance of auth endpoint at scale
Diffstat (limited to 'api/opendc/models/prefab.py')
| -rw-r--r-- | api/opendc/models/prefab.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/opendc/models/prefab.py b/api/opendc/models/prefab.py index 2d20208c..3d5dcf54 100644 --- a/api/opendc/models/prefab.py +++ b/api/opendc/models/prefab.py @@ -28,5 +28,5 @@ class Prefab(Model): # OpenDC-authored objects don't necessarily have an authorId # return - def get_all(): - return DB.fetch_all({}, Prefab.collection_name) + def get_all(query): + return DB.fetch_all(query, Prefab.collection_name) |
