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)