From 7fd61d13e5755131909e2130eddaf7476b191af1 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Wed, 4 Sep 2024 22:32:07 +0300 Subject: [PATCH] fix min>m --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 9fcb915..8e3aaf5 100644 --- a/app.py +++ b/app.py @@ -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"):