Correct parameter usage.

This commit is contained in:
2025-03-14 16:02:18 -04:00
parent 74ce22dd26
commit e5d90a71d9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ class SetCog(commands.Cog, name="Set command."):
with Session(engine) as session:
stmt = select(Guild).where(col(Guild.id) == interaction.guild_id)
guild = session.scalar(stmt)
guild.VerificationChannel = channel_id
guild.verification_channel = channel_id
session.commit()
await interaction.send(f"Registered <#{channel_id}>.", ephemeral=True)
+1 -1
View File
@@ -390,7 +390,7 @@ async def submit_score(
existing_score = session.scalar(stmt)
if existing_score:
existing_score.Score = score_f
existing_score.score = score_f
else:
score_obj = Score(username=username, score=score_f, category_id=category_id)
session.add(score_obj)