fix min>m
This commit is contained in:
parent
ca552f5a7a
commit
7fd61d13e5
4
app.py
4
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"):
|
||||
|
Loading…
Reference in New Issue
Block a user