Skip to content

Commit 8bbebb7

Browse files
authored
Feat: reenable validation (#247)
1 parent f9f293d commit 8bbebb7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/discord-cluster-manager/cogs/admin_cog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def __init__(self, bot: "ClusterBot"):
120120
name="set-forum-ids", description="Sets forum IDs"
121121
)(self.set_forum_ids)
122122

123-
# self._scheduled_cleanup_temp_users.start()
123+
self._scheduled_cleanup_temp_users.start()
124124

125125
# --------------------------------------------------------------------------
126126
# | HELPER FUNCTIONS |

src/discord-cluster-manager/leaderboard_db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ def validate_cli_id(self, cli_id: str) -> Optional[dict[str, str]]:
907907
self.cursor.execute(
908908
"""
909909
SELECT id, user_name FROM leaderboard.user_info
910-
WHERE cli_id = %s
910+
WHERE cli_id = %s AND cli_valid = TRUE
911911
""",
912912
(cli_id,),
913913
)

0 commit comments

Comments
 (0)