Fix imports

This commit is contained in:
Yusur 2024-06-16 11:31:56 +02:00
parent 5ba9f1d7d5
commit 71619dba2b
3 changed files with 12 additions and 2 deletions

9
.gitignore vendored
View file

@ -6,3 +6,12 @@ uploads/
**~ **~
**/.*.swp **/.*.swp
**/__pycache__/ **/__pycache__/
venv
.env
.venv
env
data/
conf/
config/
\#*\#
.\#*

View file

@ -2,7 +2,7 @@
Filter functions used in the website templates. Filter functions used in the website templates.
''' '''
from flask import Markup from markupsafe import Markup
import html, datetime, re, time import html, datetime, re, time
from .utils import tokenize, inline_svg as _inline_svg from .utils import tokenize, inline_svg as _inline_svg
from . import app from . import app

View file

@ -5,7 +5,8 @@ A list of utilities used across modules.
import datetime, re, base64, hashlib, string, sys, json import datetime, re, base64, hashlib, string, sys, json
from .models import User, Message, Notification, MSGPRV_PUBLIC, MSGPRV_UNLISTED, \ from .models import User, Message, Notification, MSGPRV_PUBLIC, MSGPRV_UNLISTED, \
MSGPRV_FRIENDS, MSGPRV_ONLYME MSGPRV_FRIENDS, MSGPRV_ONLYME
from flask import Markup, abort, render_template, request, session from flask import abort, render_template, request, session
from markupsafe import Markup
_forbidden_extensions = 'com net org txt'.split() _forbidden_extensions = 'com net org txt'.split()
_username_characters = frozenset(string.ascii_letters + string.digits + '_') _username_characters = frozenset(string.ascii_letters + string.digits + '_')