Skip to content

Commit

Permalink
Add private filter for get_public_approved_apps_db (#1425)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmohsin7 authored Nov 28, 2024
2 parents f944113 + 49175f1 commit ccf4496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/database/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_public_apps_db(uid: str) -> List:


def get_public_approved_apps_db() -> List:
filters = [FieldFilter('approved', '==', True), FieldFilter('deleted', '==', False)]
filters = [FieldFilter('approved', '==', True), FieldFilter('private', '==', False), FieldFilter('deleted', '==', False)]
public_apps = db.collection('plugins_data').where(filter=BaseCompositeFilter('AND', filters)).stream()
return [doc.to_dict() for doc in public_apps]

Expand Down

0 comments on commit ccf4496

Please sign in to comment.