profile_badges/main.py master
authorSomeone <someone@somenet.org>
Mon, 5 Sep 2022 17:18:49 +0000 (19:18 +0200)
committerSomeone <someone@somenet.org>
Mon, 5 Sep 2022 17:18:49 +0000 (19:18 +0200)
profile_badges/main.py

index 1060e1179c3befec3e7bd12b3716ecb12c3e7471..69c397ef6e5b7b0b7438cc261f720cdb2c5facae 100755 (executable)
@@ -97,6 +97,9 @@ if hasattr(config, "dbconnstring") and hasattr(config, "club_team_id") and hasat
     rank = 0
     for record in cur.fetchall():
         # add/remove users to/from 2k+ posts club. The post count can decline e.g. if channels are deleted.
+        if record["id"] in config.club_ignored_uids:
+            continue
+
         if record["posts"] >= 2000 and record["id"] not in config.club_banned_uids:
             rank += 1
             mm.add_user_to_team(config.club_team_id, record["id"])