Foppe Hemminga 6 лет назад
Родитель
Сommit
66f5845e4e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -71,7 +71,7 @@ if __name__ == '__main__':
                     found_in_database = True
             if not found_in_database:
                 # report new scratching
-                date_object = datetime.datetime.strptime(scratching.date, "%Y%m%d").date()
+                date_object = datetime.datetime.strptime(scratching.date, "%Y-%m-%d").date()
                 day_abbr = date_object.strftime('%a')
                 message = 'New scratching: venue = {} {} {}-{} | race = {} | horse = {}'.format(day_abbr,
                                                                                                 scratching.date,