Skip to content

Commit

Permalink
fix: interval is send
Browse files Browse the repository at this point in the history
  • Loading branch information
skillor committed Oct 2, 2024
1 parent 213afa6 commit ae2ec28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/active_tracker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async def create_activity_image_by_template(self, guild, activity_users, templat
last_interval = 0
current_duration = 0
if activity_message is not None:
last_interval = activity_message.last_interval
last_interval = activity_message.last_sent
current_duration = time.time() - last_interval
img_buf = await self.bot.image_creator.create_bytes(template(users=data_obj, last_interval=last_interval, current_duration=current_duration), max_size=(-1, 8000))
return discord.File(filename="activity.png", fp=img_buf)
Expand Down

0 comments on commit ae2ec28

Please sign in to comment.