Skip to content

Commit

Permalink
Allow tags that have no users
Browse files Browse the repository at this point in the history
Use case: tag-based frontend differentiation using X-4CAT-Config-Via-Proxy
  • Loading branch information
stijn-uva committed Sep 16, 2024
1 parent b542ded commit d6064be
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions common/config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,6 @@ def ensure_database(self):
known_tags = [t["tag"] for t in self.db.fetchall("SELECT DISTINCT tag FROM settings")]
tag_order = self.get("flask.tag_order")

for tag in tag_order:
# don't include tags not used by users in the tag order
if tag not in user_tags:
tag_order.remove(tag)

for tag in known_tags:
# add tags used by a setting to tag order
if tag and tag not in tag_order:
Expand Down

0 comments on commit d6064be

Please sign in to comment.