Skip to content

Commit 249b907

Browse files
authored
Update server.py
1 parent add658a commit 249b907

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dkroutingtool/src/py/server.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ def download(session_id: str=''):
154154

155155
@app.get('/request_map/')
156156
def request_map(minlat, minlon, maxlat, maxlon):
157-
stateful_info['bounding_box'] = [minlat, minlon, maxlat, maxlon]
158-
159157
request_template = f'''
160158
[out:xml]
161159
[bbox:{minlon},{minlat}, {maxlon}, {maxlat}];
@@ -171,6 +169,7 @@ def request_map(minlat, minlon, maxlat, maxlon):
171169
opened.write(r.text)
172170
os.environ['osm_filename'] = 'ui_map'
173171
temporary_build_profiles()
172+
stateful_info['bounding_box'] = [minlat, minlon, maxlat, maxlon]
174173
return {'message': 'Done'}
175174

176175

@@ -220,4 +219,4 @@ def temporary_build_profiles(osmpbf=False):
220219

221220

222221
if __name__ == '__main__':
223-
uvicorn.run(app, host='0.0.0.0', port=5001)
222+
uvicorn.run(app, host='0.0.0.0', port=5001)

0 commit comments

Comments
 (0)