2 Commits d82439638a ... d33a08a30c

Tác giả SHA1 Thông báo Ngày
  Clovis JAQUIN d33a08a30c Merge branch 'master' of http://gitlab.jaquin.fr/clovis/bdlg2023-sms-back 2 tháng trước cách đây
  Clovis JAQUIN af676ebc6d fix negative sleep 1 năm trước cách đây
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      script/send_sms.py

+ 1 - 1
script/send_sms.py

@@ -68,4 +68,4 @@ if __name__ == "__main__":
         except Exception:
             logging.exception("An error as occured : ")
         elapsed_time = time.time() - starting_time
-        time.sleep(180 - elapsed_time)
+        time.sleep(max(180 - elapsed_time, 0))