Skip to content

Commit

Permalink
fix initialization order bug
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Feb 23, 2018
1 parent d34ef99 commit f0ed9d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def configure_socket(app):
def import_cities():
with open(join(path_app, 'data', 'cities.json')) as data:
for city_dict in load(data):
if int(city_dict['population']) < 1300000:
if int(city_dict['population']) < 1200000:
continue
city = City(**city_dict)
db.session.add(city)
Expand All @@ -54,8 +54,8 @@ def create_app():
app.config['SECRET_KEY'] = 'key'
configure_database(app)
socketio = configure_socket(app)
tsp = pyTSP()
import_cities()
tsp = pyTSP()
return app, socketio, tsp


Expand Down

0 comments on commit f0ed9d6

Please sign in to comment.