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/ee91df4c0441266c994ec8a4fd1c8389dd42731d?ds=inline;hp=-c Read the whole input file before making api calls --- ee91df4c0441266c994ec8a4fd1c8389dd42731d 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 = []