From 24e5590836eba272ecc7618cfbb40e6886a1b45f Mon Sep 17 00:00:00 2001 From: Nathan TeBlunthuis Date: Sat, 28 Mar 2020 14:09:28 -0700 Subject: [PATCH 1/1] 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