]> code.communitydata.science - covid19.git/commitdiff
fix bug in rev scraper script
authorBenjamin Mako Hill <mako@atdot.cc>
Wed, 1 Apr 2020 20:49:28 +0000 (15:49 -0500)
committerBenjamin Mako Hill <mako@atdot.cc>
Wed, 1 Apr 2020 20:49:28 +0000 (15:49 -0500)
Bug was a break, added for debugging, that caused the script to only
work for the first article.

wikipedia/scripts/fetch_enwiki_revisions.py

index 44528e8757e04141b1af2e67740fbe316362f455..3793c0b93e155e714c5982e6c8680cdc789030da 100755 (executable)
@@ -141,8 +141,6 @@ def main():
                 rev['export_commit'] = export_git_short_hash
 
                 tsv_writer.writerow({k: rev[k] for k in tsv_fields})
-            break
 
 if __name__ == "__main__":
-
     main()

Community Data Science Collective || Want to submit a patch?