dfsfsd
This commit is contained in:
parent
0cbe982fd8
commit
09a57dad7c
3 changed files with 8 additions and 10 deletions
|
@ -2,19 +2,16 @@ import re
|
|||
from urllib.parse import urlencode, urlparse, parse_qs
|
||||
from flask import *
|
||||
from sqlalchemy import *
|
||||
from sqlalchemy.orm import relationship, deferred, lazyload
|
||||
from sqlalchemy.orm import relationship, deferred
|
||||
from files.helpers.lazy import lazy
|
||||
from files.helpers.const import SLURS
|
||||
from files.__main__ import Base
|
||||
from files.__main__ import Base, shadowbanned
|
||||
from .flags import CommentFlag
|
||||
from .user import User
|
||||
from os import environ
|
||||
import time
|
||||
|
||||
site = environ.get("DOMAIN").strip()
|
||||
|
||||
shadowbanned = [x[0] for x in g.db.query(User.id).options(lazyload('*')).filter(User.shadowbanned != None).all()]
|
||||
|
||||
class Comment(Base):
|
||||
|
||||
__tablename__ = "comments"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue