Skip to content

Commit

Permalink
Fixed styling
Browse files Browse the repository at this point in the history
  • Loading branch information
49Indium committed Nov 26, 2024
1 parent 625924c commit d63fa84
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions uqcsbot/advent.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,7 @@ async def register_command(self, interaction: discord.Interaction, aoc_name: str

query = (
db_session.query(AOCRegistrations)
.filter(
AOCRegistrations.aoc_userid == AOC_id
)
.filter(AOCRegistrations.aoc_userid == AOC_id)
.one_or_none()
)
if query is not None:
Expand All @@ -595,7 +593,7 @@ async def register_command(self, interaction: discord.Interaction, aoc_name: str
query = (
db_session.query(AOCRegistrations)
.filter(
AOCRegistrations.discord_userid == discord_id,
AOCRegistrations.discord_userid == discord_id,
)
.one_or_none()
)
Expand All @@ -605,9 +603,7 @@ async def register_command(self, interaction: discord.Interaction, aoc_name: str
)
return

db_session.add(
AOCRegistrations(aoc_userid=AOC_id, discord_userid=discord_id)
)
db_session.add(AOCRegistrations(aoc_userid=AOC_id, discord_userid=discord_id))
db_session.commit()
db_session.close()

Expand Down Expand Up @@ -664,9 +660,7 @@ async def register_admin_command(

query = (
db_session.query(AOCRegistrations)
.filter(
AOCRegistrations.aoc_userid == aoc_id
)
.filter(AOCRegistrations.aoc_userid == aoc_id)
.one_or_none()
)
if query is not None:
Expand All @@ -680,9 +674,7 @@ async def register_admin_command(
)
return

db_session.add(
AOCRegistrations(aoc_userid=aoc_id, discord_userid=discord_id)
)
db_session.add(AOCRegistrations(aoc_userid=aoc_id, discord_userid=discord_id))
db_session.commit()
db_session.close()

Expand Down

0 comments on commit d63fa84

Please sign in to comment.