Foppe Hemminga 6 년 전
부모
커밋
d28f54724d
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      main.py

+ 6 - 2
main.py

@@ -56,7 +56,11 @@ if __name__ == '__main__':
         for scratching in scratchings:
             found_in_database = False
             for row in db_data:
+                # print('row: ', end = '')
+                # print(type(row))
                 # print(row)
+                # if type(row) == 'datetime.time':
+                #     continue
                 if (
                         scratching.date == row.race_date.strftime('%Y-%m-%d') and
                         scratching.venue == row.venue and
@@ -93,8 +97,8 @@ if __name__ == '__main__':
                                                 scratching.state,
                                                 scratching.venue,
                                                 scratching.race,
-                                                db_data.start_time[-3:],
-                                                db_data.utctime.strftime('%H:%M:%S'),
+                                                db_data.start_time.strftime('%H:%M'),
+                                                db_data.utctime.strftime('%H:%M'),
                                                 scratching.horse)
                 print(message)
                 if broadcast: