From: Nathan TeBlunthuis Date: Sat, 28 Mar 2020 21:09:28 +0000 (-0700) Subject: Read the whole input file before making api calls X-Git-Url: https://code.communitydata.science/covid19.git/commitdiff_plain/24e5590836eba272ecc7618cfbb40e6886a1b45f?ds=inline;hp=--cc Read the whole input file before making api calls --- 24e5590836eba272ecc7618cfbb40e6886a1b45f diff --git a/wikipedia_views/scripts/fetch_daily_views.py b/wikipedia_views/scripts/fetch_daily_views.py index 18bc01f..ab824c2 100755 --- a/wikipedia_views/scripts/fetch_daily_views.py +++ b/wikipedia_views/scripts/fetch_daily_views.py @@ -55,7 +55,7 @@ def main(): with open(articleFile, 'r') as infile: next(infile) #skip header - articleList = infile + articleList = list(infile) j = []