diff options
| author | 2021-11-01 19:22:50 +0530 | |
|---|---|---|
| committer | 2021-11-01 19:22:50 +0530 | |
| commit | 88c407077ba7eba709d4d53455bd46bd9607f8e8 (patch) | |
| tree | 30d4ffef4b64a900dc09e72b17cdd4eead77a096 | |
| parent | Use discord timestamps for showing worktime (diff) | |
Make 'parse' imported function name explicit
| -rw-r--r-- | bot/exts/moderation/modpings.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/moderation/modpings.py b/bot/exts/moderation/modpings.py index 65372c312..47bc5e283 100644 --- a/bot/exts/moderation/modpings.py +++ b/bot/exts/moderation/modpings.py @@ -2,7 +2,7 @@ import asyncio import datetime from async_rediscache import RedisCache -from dateutil.parser import isoparse, parse +from dateutil.parser import isoparse, parse as dateutil_parse from discord import Embed, Member from discord.ext.commands import Cog, Context, group, has_any_role @@ -200,7 +200,7 @@ class ModPings(Cog): @has_any_role(*MODERATION_ROLES) async def schedule_modpings(self, ctx: Context, start: str, end: str) -> None: """Schedule modpings role to be added at <start> and removed at <end> everyday at UTC time!""" - start, end = parse(start), parse(end) + start, end = dateutil_parse(start), dateutil_parse(end) if end < start: end += datetime.timedelta(days=1) |