Skip to content

Commit

Permalink
WebHost: import Markup from markupsafe (ArchipelagoMW#1848)
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 authored Jun 19, 2023
1 parent 61fc805 commit a75159b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion WebHostLib/api/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import pickle
from uuid import UUID

from flask import request, session, url_for, Markup
from flask import request, session, url_for
from markupsafe import Markup
from pony.orm import commit

from WebHostLib import app
Expand Down
3 changes: 2 additions & 1 deletion WebHostLib/check.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import zipfile
from typing import *

from flask import request, flash, redirect, url_for, render_template, Markup
from flask import request, flash, redirect, url_for, render_template
from markupsafe import Markup

from WebHostLib import app

Expand Down
1 change: 1 addition & 0 deletions WebHostLib/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ Flask-Caching>=2.0.2
Flask-Compress>=1.13
Flask-Limiter>=3.3.0
bokeh>=3.1.1
markupsafe>=2.1.3
5 changes: 3 additions & 2 deletions WebHostLib/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
import zlib

from io import BytesIO
from flask import request, flash, redirect, url_for, session, render_template, Markup
from flask import request, flash, redirect, url_for, session, render_template
from markupsafe import Markup
from pony.orm import commit, flush, select, rollback
from pony.orm.core import TransactionIntegrityError

import MultiServer
from NetUtils import NetworkSlot, SlotType
from NetUtils import SlotType
from Utils import VersionException, __version__
from worlds.Files import AutoPatchRegister
from . import app
Expand Down

0 comments on commit a75159b

Please sign in to comment.