rewrite: Various bug fixes.

This commit is contained in:
2023-05-25 16:45:54 +03:00
parent 0863d13088
commit fe8cf35885
11 changed files with 237 additions and 21 deletions

View File

@@ -69,7 +69,7 @@ async def get_goals_card(
# Set and compute correct middle goal column
if mode in (CardMode.VOICE, CardMode.STUDY):
model = data.VoiceSessionStats
middle_completed = (await model.study_times_between(guildid or None, userid, start, end))[0]
middle_completed = int((await model.study_times_between(guildid or None, userid, start, end))[0] // 3600)
middle_goal = goals['study_goal']
elif mode is CardMode.TEXT:
model = TextTrackerData.TextSessions