소스 검색

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')