highing666 3 лет назад
Родитель
Сommit
ea66c1cbae
2 измененных файлов с 1 добавлено и 1 удалено
  1. 0 0
      app/schemas/instructions.py
  2. 1 1
      app/utils/date.py

+ 0 - 0
app/schemas/instructions.py


+ 1 - 1
app/utils/date.py

@@ -31,5 +31,5 @@ def get_time_str(delta: int = 0, flag: str = 'now', fmt: Optional[str] = TIME_FM
 
 
 def get_quarter_minutes(time_str: str) -> str:
-    temp = arrow.get(time_str, TIME_FMT).timestamp // (15 * 60) * (15 * 60)
+    temp = arrow.get(time_str, TIME_FMT).timestamp() // (15 * 60) * (15 * 60)
     return arrow.get(temp).time().strftime('%H%M%S')