Skip to content

Commit

Permalink
Fix #106 Import escape directly from markupsafe instead of via flask
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmen Wassenaar committed Nov 13, 2023
1 parent ca43424 commit 09ac18a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ Changelog
Unreleased
----------

* Add the option to only show progress on the dashboard. (`#104`_)
* Add the option to only show progress on the dashboard. (`#107`_)
* Import escape directly from markupsafe, instead of from flask. (`#106`_)

.. _#104: https://github.com/sybrenjansen/mpire/pull/104
.. _#108: https://github.com/sybrenjansen/mpire/pull/107
.. _#107: https://github.com/sybrenjansen/mpire/issues/106


2.8.1
Expand Down
3 changes: 2 additions & 1 deletion mpire/dashboard/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
from pkg_resources import resource_string
from typing import Dict, Optional, Sequence, Union

from flask import escape, Flask, jsonify, render_template, request
from flask import Flask, jsonify, render_template, request
from markupsafe import escape
from werkzeug.serving import make_server

from mpire.signal import DisableKeyboardInterruptSignal, ignore_keyboard_interrupt
Expand Down

0 comments on commit 09ac18a

Please sign in to comment.