Skip to content

Commit

Permalink
fix import in routes/imports.py (url_quote depraceted in werkzeug and…
Browse files Browse the repository at this point in the history
… flask 3.0)
  • Loading branch information
jacquesfize committed Nov 16, 2023
1 parent bcaf1ae commit a5ea8d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/gn_module_import/routes/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@

from flask import request, current_app, jsonify, g, stream_with_context, send_file
from werkzeug.exceptions import Conflict, BadRequest, Forbidden, Gone
from werkzeug.urls import url_quote
# url_quote was deprecated in werkzeug 3.0 https://stackoverflow.com/a/77222063/5807438
from urllib.parse import (
quote as url_quote,
)
from sqlalchemy import or_, func, desc
from sqlalchemy.inspection import inspect
from sqlalchemy.orm import joinedload, Load, load_only, undefer, contains_eager, class_mapper
Expand Down

0 comments on commit a5ea8d5

Please sign in to comment.