aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/moderation/modpings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/moderation/modpings.py b/bot/exts/moderation/modpings.py
index cf45a2182..1f6b7984a 100644
--- a/bot/exts/moderation/modpings.py
+++ b/bot/exts/moderation/modpings.py
@@ -71,9 +71,9 @@ class ModPings(Cog):
schedule_cache = await self.modpings_schedule.to_dict()
log.info("Scheduling modpings schedule for applicable moderators found in cache.")
- for mod_id, schedule in schedule_cache:
+ for mod_id, schedule in schedule_cache.items():
start_timestamp, work_time = schedule.split("|")
- start = datetime.datetime.fromtimestamp(start_timestamp)
+ start = datetime.datetime.fromtimestamp(float(start_timestamp))
mod = self.bot.fetch_user(mod_id)
self._modpings_scheduler.schedule_at(