forked from rDrama/rDrama
fix 500 error
parent
14d2845f93
commit
ea3d7997c8
|
@ -2,9 +2,13 @@ from sqlalchemy import *
|
||||||
from sqlalchemy.orm import relationship
|
from sqlalchemy.orm import relationship
|
||||||
from files.__main__ import Base
|
from files.__main__ import Base
|
||||||
from files.helpers.lazy import lazy
|
from files.helpers.lazy import lazy
|
||||||
from files.helpers.const import *
|
from os import environ
|
||||||
from .sub_block import *
|
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):
|
class Sub(Base):
|
||||||
__tablename__ = "subs"
|
__tablename__ = "subs"
|
||||||
|
|
Loading…
Reference in New Issue