Compare commits

...

3 Commits

Author SHA1 Message Date
dgtlmoon
b2f07adc59 fix import 2025-10-13 12:42:07 +02:00
dgtlmoon
804e8c249b fix import 2025-10-13 12:18:14 +02:00
dgtlmoon
b26333b01c Update flask requirement from ~=2.3 to ~=3.1, unpin werkzeug 2025-10-13 12:04:40 +02:00
3 changed files with 5 additions and 9 deletions

View File

@@ -89,9 +89,8 @@ class model(watch_base):
ready_url = jinja_render(template_str=url)
except Exception as e:
logger.critical(f"Invalid URL template for: '{url}' - {str(e)}")
from flask import (
flash, Markup, url_for
)
from flask import flash, url_for
from markupsafe import Markup
message = Markup('<a href="{}#general">The URL {} is invalid and cannot be used, click to edit</a>'.format(
url_for('ui.ui_edit.edit_page', uuid=self.get('uuid')), self.get('url', '')))
flash(message, 'error')

View File

@@ -2,7 +2,8 @@
# coding=utf-8
import time
from flask import url_for, escape
from flask import url_for
from markupsafe import escape
from . util import live_server_setup, wait_for_all_checks, delete_all_watches
import pytest
jq_support = True

View File

@@ -10,7 +10,7 @@ flask_restful
flask_cors # For the Chrome extension to operate
janus # Thread-safe async/sync queue bridge
flask_wtf~=1.2
flask~=2.3
flask~=3.1
flask-socketio~=5.5.1
python-socketio~=5.13.0
python-engineio~=4.12.3
@@ -67,10 +67,6 @@ elementpath==4.1.5
selenium~=4.31.0
# https://github.com/pallets/werkzeug/issues/2985
# Maybe related to pytest?
werkzeug==3.0.6
# Templating, so far just in the URLs but in the future can be for the notifications also
jinja2~=3.1
arrow