Fix imports
This commit is contained in:
parent
5ba9f1d7d5
commit
71619dba2b
3 changed files with 12 additions and 2 deletions
9
.gitignore
vendored
9
.gitignore
vendored
|
|
@ -6,3 +6,12 @@ uploads/
|
||||||
**~
|
**~
|
||||||
**/.*.swp
|
**/.*.swp
|
||||||
**/__pycache__/
|
**/__pycache__/
|
||||||
|
venv
|
||||||
|
.env
|
||||||
|
.venv
|
||||||
|
env
|
||||||
|
data/
|
||||||
|
conf/
|
||||||
|
config/
|
||||||
|
\#*\#
|
||||||
|
.\#*
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 + '_')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue