Jelajahi Sumber

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

Afwas [1337627 6 tahun lalu
induk
melakukan
9bfe3636ef
1 mengubah file dengan 6 tambahan dan 3 penghapusan
  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)
     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