Fix import borders from *.osm file
This commit is contained in:
parent
6ace96c581
commit
3ea675364f
3 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
FROM tiangolo/uwsgi-nginx-flask:latest
|
||||
|
||||
RUN pip install flask_cors flask_compress psycopg2 unidecode numpy sklearn
|
||||
RUN pip install lxml flask_cors flask_compress psycopg2 unidecode numpy sklearn
|
||||
|
||||
COPY app /app
|
||||
COPY ./uwsgi.ini /app
|
||||
|
|
|
@ -1141,6 +1141,7 @@ def bbox_contains(outer, inner):
|
|||
|
||||
@app.route('/import', methods=['POST'])
|
||||
def import_osm():
|
||||
data = request.data
|
||||
if config.READONLY:
|
||||
abort(405)
|
||||
if not LXML:
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[uwsgi]
|
||||
# Workaround for io.BytesIO to work with uWSGI sendfile: https://github.com/unbit/uwsgi/issues/1126
|
||||
wsgi-disable-file-wrapper = True
|
||||
|
||||
module = borders_api
|
||||
callable = app
|
||||
|
|
Loading…
Add table
Reference in a new issue