瀏覽代碼

Compare race (number) as ints

Foppe Hemminga 6 年之前
父節點
當前提交
1c50e5dfa4
共有 1 個文件被更改,包括 1 次插入1 次删除
  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,