fix 500 error

remotes/1693045480750635534/spooky-22
Aevann1 2022-07-08 20:13:18 +02:00
parent 14d2845f93
commit ea3d7997c8
1 changed files with 5 additions and 1 deletions

View File

@ -2,9 +2,13 @@ from sqlalchemy import *
from sqlalchemy.orm import relationship
from files.__main__ import Base
from files.helpers.lazy import lazy
from files.helpers.const import *
from os import environ
from .sub_block import *
SITE_NAME = environ.get("SITE_NAME", '').strip()
SITE = environ.get("DOMAIN", '').strip()
if SITE == "localhost": SITE_FULL = 'http://' + SITE
else: SITE_FULL = 'https://' + SITE
class Sub(Base):
__tablename__ = "subs"