Browse Source

Adding hours to debug

Foppe Hemminga 6 năm trước cách đây
mục cha
commit
26a0acb3c2
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      _bs.py

+ 2 - 2
_bs.py

@@ -114,8 +114,8 @@ def get_meta_data(this_data, this_venue):
             # print(times[1])
         match = close_regex.search(this_meta_data)
         utctime = datetime.datetime.utcnow()
-        if (utctime.hour == 15 and utctime.minute > 49) or \
-            (utctime.hour == 16 and utctime.minute < 11):
+        if (utctime.hour in [15,16,17,18] and utctime.minute > 49) or \
+            (utctime.hour in [16,17,18,19] and utctime.minute < 11):
             print_it = True
             print('utctime: {}'.format(utctime))
         if match: