Преглед изворни кода

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

Afwas [1337627 пре 6 година
родитељ
комит
9bfe3636ef
1 измењених фајлова са 6 додато и 3 уклоњено
  1. 6 3
      _bs.py

+ 6 - 3
_bs.py

@@ -178,7 +178,10 @@ def process_scratchings(this_data, this_venue):
     late_scratchings = scrape_scratchings(div, this_venue)
     late_scratchings = scrape_scratchings(div, this_venue)
     scratchings.update(late_scratchings)
     scratchings.update(late_scratchings)
 
 
-    assert len(scratchings) == int(scratchings_count), 'len(scratchings) {} == scratchings_count {}'.format(
-         len(scratchings), scratchings_count)
-    # pprint(scratchings)
+    # assert len(scratchings) == int(scratchings_count), 'len(scratchings) {} == scratchings_count {}'.format(
+    #     len(scratchings), scratchings_count)
+    if len(scratchings) != int(scratchings_count):
+        print('len(scratchings) {} == scratchings_count {}'.format(
+            len(scratchings), scratchings_count))
+        pprint(scratchings)
     return scratchings
     return scratchings