From 897a6ec045027f6b48eaa70e32aa2de2ef9ea97c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Thu, 15 Apr 2021 22:04:19 +0200 Subject: [PATCH] Run black --- main.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index a534b4b..ab6cea1 100644 --- a/main.py +++ b/main.py @@ -46,8 +46,7 @@ async def remind(ctx, message_date: str, message_reason: str): f"{message_date}", settings={"PREFER_DATES_FROM": "future"}, ) - convert_date_to_our_timezone = parsed_date.astimezone( - timezone(config_timezone)) + convert_date_to_our_timezone = parsed_date.astimezone(timezone(config_timezone)) remove_timezone_from_date = convert_date_to_our_timezone.strftime( "%Y-%m-%d %H:%M:%S" ) @@ -69,8 +68,7 @@ async def remind(ctx, message_date: str, message_reason: str): "author_id": ctx.message.author.id, }, ) - logging.debug( - f"Job id: '{job.id}', name: '{job.name}' and kwargs: '{job.kwargs}'") + logging.debug(f"Job id: '{job.id}', name: '{job.name}' and kwargs: '{job.kwargs}'") message = ( f"Hello {ctx.message.author.name}, I will notify you at:\n" f"**{remove_timezone_from_date}**\n" @@ -103,8 +101,7 @@ if __name__ == "__main__": ) # Advanced Python Scheduler - jobstores = {"default": SQLAlchemyJobStore( - url=f"sqlite://{sqlite_location}")} + jobstores = {"default": SQLAlchemyJobStore(url=f"sqlite://{sqlite_location}")} job_defaults = {"coalesce": True} scheduler = AsyncIOScheduler( jobstores=jobstores,