@@ -60,7 +60,7 @@ if __name__ == '__main__':
if (
scratching.date == row.race_date.strftime('%Y-%m-%d') and
scratching.venue == row.venue and
- scratching.race == row.race and
+ int(scratching.race) == int(row.race) and
scratching.horse == row.horse
):
message = 'Horse found: date = {}, venue = {}, race = {}, horse = {}'.format(scratching.date,