fix min>m

This commit is contained in:
vvzvlad 2024-09-04 22:32:07 +03:00
parent ca552f5a7a
commit 7fd61d13e5

4
app.py
View File

@ -61,8 +61,8 @@ def get_inference(token, period):
def convert_period_to_seconds(period):
"""Конвертируем период в секунды."""
if period.endswith("min"):
return int(period[:-3]) * 60
if period.endswith("m"):
return int(period[:-1]) * 60
elif period.endswith("h"):
return int(period[:-1]) * 3600
elif period.endswith("d"):