Ver código fonte

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

Afwas [1337627 6 anos atrás
pai
commit
d2f6eb4c97
1 arquivos alterados com 2 adições e 0 exclusões
  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)