@@ -58,9 +58,9 @@ if __name__ == '__main__':
for row in db_data:
# print(row)
if (
- # scratching.date == row.race_date and
- # scratching.venue == row.venue and
- # scratching.race == row.race and
+ scratching.date == row.race_date.strftime('%Y-%m-%d') and
+ scratching.venue == row.venue and
+ scratching.race == row.race and
scratching.horse == row.horse
):
message = 'Horse found: date = {}, venue = {}, race = {}, horse = {}'.format(scratching.date,