fix (studytracker): Cast NULL badgeid correctly.

This commit is contained in:
2021-09-30 23:12:28 +03:00
parent 6a044e566f
commit 6ef6c757fb

View File

@@ -94,7 +94,8 @@ async def update_study_badges(full=False):
*((row['current_study_badgeid'], row['guildid'], row['userid'])
for row in update_rows if row['guildid'] in updated_guilds),
set_keys=('last_study_badgeid',),
where_keys=('guildid', 'userid')
where_keys=('guildid', 'userid'),
cast_row='(NULL::int, NULL::int, NULL::int)'
)
# Update the app scan time