瀏覽代碼

fix a bug

highing666 3 年之前
父節點
當前提交
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')