Skip to content

Commit 7d19477

Browse files
committed
clean
1 parent 01c0152 commit 7d19477

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/opengeodeweb_back/routes/blueprint_routes.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,6 @@ def export_project() -> flask.Response:
327327
methods=schemas_dict["import_project"]["methods"],
328328
)
329329
def import_project() -> flask.Response:
330-
# if flask.request.method == "OPTIONS":
331-
# return flask.make_response({}, 200)
332330
utils_functions.validate_request(flask.request, schemas_dict["import_project"])
333331
if "file" not in flask.request.files:
334332
flask.abort(400, "No .vease file provided under 'file'")
@@ -366,7 +364,7 @@ def import_project() -> flask.Response:
366364
if not (
367365
target == project_folder or target.startswith(project_folder + os.sep)
368366
):
369-
flask.abort(400, "Zip contains unsafe paths")
367+
flask.abort(400, "Vease file contains unsafe paths")
370368
zip_archive.extractall(project_folder)
371369

372370
database_root_path = os.path.join(project_folder, "project.db")

0 commit comments

Comments
 (0)