Ver código fonte

Compare race (number) as ints

Foppe Hemminga 6 anos atrás
pai
commit
1c50e5dfa4
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -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,