From 78ac5e7254cf1549ec2bd75637c2301d98002063 Mon Sep 17 00:00:00 2001 From: jc0b Date: Mon, 3 Aug 2020 16:30:49 +0200 Subject: Fixed pylint error --- api/opendc/models/prefab.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'api/opendc/models') 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) -- cgit v1.2.3