|
@@ -176,6 +176,8 @@ def process_scratchings(this_data, this_venue):
|
|
|
div = header.findNext('table')
|
|
div = header.findNext('table')
|
|
|
late_scratchings = scrape_scratchings(div, this_venue)
|
|
late_scratchings = scrape_scratchings(div, this_venue)
|
|
|
scratchings = early_scratchings + late_scratchings
|
|
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(
|
|
# assert len(scratchings) == int(scratchings_count), 'len(scratchings) {} == scratchings_count {}'.format(
|
|
|
# len(scratchings), scratchings_count)
|
|
# len(scratchings), scratchings_count)
|
|
|
# pprint(scratchings)
|
|
# pprint(scratchings)
|