Skip to content

Commit

Permalink
using by_id since it allows for faster access.
Browse files Browse the repository at this point in the history
  • Loading branch information
vogt31337 committed Sep 19, 2023
1 parent f52c875 commit 1217115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandahub/lib/PandaHub.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def remove_user_from_project(self, email):

def get_all_nets_metadata_from_db(self, project_id=None):
if project_id:
self.set_active_project(project_id)
self.set_active_project_by_id(project_id)
self.check_permission('read')
db = self._get_project_database()
return list(db['_networks'].find())
Expand Down

0 comments on commit 1217115

Please sign in to comment.