From 3ef6732cd37a00efa1a41cbfad070d965391d88b Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Tue, 26 Nov 2019 01:12:58 -0500 Subject: [PATCH] typo --- savetables.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/savetables.py b/savetables.py index cac5845..edd458e 100755 --- a/savetables.py +++ b/savetables.py @@ -23,8 +23,7 @@ for table in tables: continue r = requests.get("https://fusiontables.googleusercontent.com/exporttable?query=select+*+from+{}&o=zip".format(table)) - print(r.status_code) - if r.status_code != 200: + if r.status_code == 200: print("Saving ./data/{}".format(data_file)) with open("./data/{}".format(data_file), 'wb') as f: f.write(r.content)