From 4de62ca52ecf3a4755ba0af32814d13c3da09be2 Mon Sep 17 00:00:00 2001 From: heroicfun <101557656+heroicfun@users.noreply.github.com> Date: Wed, 15 Mar 2023 23:26:58 +0200 Subject: [PATCH] adding months timedelta to ro command --- app/utils/timedelta_functions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/utils/timedelta_functions.py b/app/utils/timedelta_functions.py index 2611f535..2825bb9f 100644 --- a/app/utils/timedelta_functions.py +++ b/app/utils/timedelta_functions.py @@ -7,6 +7,7 @@ MODIFIERS = { "y": datetime.timedelta(days=365), # простим один день если кому-то попадётся високосный + "M": datetime.timedelta(days=31), "w": datetime.timedelta(weeks=1), "d": datetime.timedelta(days=1), "h": datetime.timedelta(hours=1),