Skip to content
This repository was archived by the owner on Nov 2, 2025. It is now read-only.

Commit 00f0773

Browse files
HoodieRocksgithub-actions[bot]
authored andcommitted
Apply formatting
1 parent 03184e7 commit 00f0773

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

routes/moderation.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"user",
3131
"backup",
3232
"restore",
33-
"pfpreset"
33+
"pfpreset",
3434
]
3535

3636

@@ -207,16 +207,22 @@ def console() -> tuple[dict[str, Any] | str, int]:
207207
# Run SQLITE command
208208
try:
209209
conn = util.make_connection()
210-
dsc_users = util.exec_query(conn, "select discord_id from users where discord_id != null") # nosec
211-
hub_users = util.exec_query(conn, "select github_id from users where github_id is not null") # nosec
212-
210+
dsc_users = util.exec_query(
211+
conn, "select discord_id from users where discord_id != null"
212+
) # nosec
213+
hub_users = util.exec_query(
214+
conn, "select github_id from users where github_id is not null"
215+
) # nosec
216+
213217
for user in hub_users.all():
214-
util.exec_query(conn, f"update users set profile_icon = \"https://avatars.githubusercontent.com/u/{user[0]}\" where github_id = {user[0]}")
218+
util.exec_query(
219+
conn,
220+
f'update users set profile_icon = "https://avatars.githubusercontent.com/u/{user[0]}" where github_id = {user[0]}',
221+
)
215222
conn.commit()
216223
# for user in dsc_users.all():
217224
# util.exec_query(conn, f"update from users set profile_icon = \"https://avatars.githubusercontent.com/u/{user["discord_id"]}\"")
218-
219-
225+
220226
except sqlalchemy.exc.SQLAlchemyError as error:
221227
return "SQL Error: " + (" ".join(error.args)), 400
222228
else:

0 commit comments

Comments
 (0)