瀏覽代碼

Merge branch 'master' of https://git.fop.pe/Foppe/scratchings

Afwas [1337627 6 年之前
父節點
當前提交
d2f6eb4c97
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      _bs.py

+ 2 - 0
_bs.py

@@ -176,6 +176,8 @@ def process_scratchings(this_data, this_venue):
     div = header.findNext('table')
     late_scratchings = scrape_scratchings(div, this_venue)
     scratchings = early_scratchings + late_scratchings
+    # Make sure the scratchings list contains distinct entries
+    scratchings = list(set(scratchings))
     # assert len(scratchings) == int(scratchings_count), 'len(scratchings) {} == scratchings_count {}'.format(
     #     len(scratchings), scratchings_count)
     # pprint(scratchings)