From ee91df4c0441266c994ec8a4fd1c8389dd42731d Mon Sep 17 00:00:00 2001 From: Nathan TeBlunthuis Date: Sat, 28 Mar 2020 14:09:28 -0700 Subject: [PATCH] Read the whole input file before making api calls --- wikipedia_views/scripts/fetch_daily_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [] -- 2.39.5