diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-02-18 21:59:17 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-18 21:59:17 -0800 |
| commit | a54cdbc23873e5785485b4e8caf416de0142d0b5 (patch) | |
| tree | d7c22126603eab0cf4c087abe6a3d9ffcff06e20 | |
| parent | 373a576481a8c251ff69e36e76b13f764552b071 (diff) | |
chore: refactor group endpoint to use better kv names
| -rw-r--r-- | app.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -188,10 +188,10 @@ def get_channel_information(channel_name): @app.route("/api/groups") def api_groups(): group_mappings = {} - for key, value in member_groups.items(): - if value not in group_mappings: - group_mappings[value] = [] - group_mappings[value].append(key) + for name, group in member_groups.items(): + if group not in group_mappings: + group_mappings[group] = [] + group_mappings[group].append(name) return jsonify(group_mappings) @app.errorhandler(404) |
