summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-02-18 21:57:36 -0800
committerGitHub <noreply@github.com>2025-02-18 21:57:36 -0800
commitd21d8dc649a1d5ab810cc4bcb39155bdf44ecc35 (patch)
tree80eec583849db4584a12c7569816aebc625bfbf6
parent4738aa0e6ddb9e14f772d12955e7d669f3a0146d (diff)
PC: wow i need to pick better names
-rw-r--r--app.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/app.py b/app.py
index f724054..94da4c2 100644
--- a/app.py
+++ b/app.py
@@ -188,12 +188,12 @@ def get_channel_information(channel_name):
@app.route("/api/groups")
def api_groups():
group_mappings = {}
- for key, value in member_groups.items():
- if value in GRADUATED:
+ for name, group in member_groups.items():
+ if group in GRADUATED:
continue
- if value not in group_mappings:
- group_mappings[value] = []
- group_mappings[value].append(key)
+ if group not in group_mappings:
+ group_mappings[group] = []
+ group_mappings[group].append(name)
return jsonify(group_mappings)
@app.errorhandler(404)
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage