forked from rDrama/rDrama
kofi: decide whether to load in __init__
this unifies some of the logic with how we load classesmaster
parent
5b03c2535a
commit
d80fa23409
|
@ -3,7 +3,7 @@ from sqlalchemy.ext.declarative import declarative_base
|
||||||
Base = declarative_base()
|
Base = declarative_base()
|
||||||
|
|
||||||
# then load our required constants...
|
# then load our required constants...
|
||||||
from files.helpers.const import FEATURES
|
from files.helpers.const import FEATURES, KOFI_TOKEN
|
||||||
|
|
||||||
# then load all of our classes :)
|
# then load all of our classes :)
|
||||||
from .alts import *
|
from .alts import *
|
||||||
|
@ -29,7 +29,8 @@ from .lottery import *
|
||||||
from .casino_game import *
|
from .casino_game import *
|
||||||
from .hats import *
|
from .hats import *
|
||||||
from .marsey import *
|
from .marsey import *
|
||||||
from .transactions import *
|
if KOFI_TOKEN:
|
||||||
|
from .transactions import *
|
||||||
from .sub_logs import *
|
from .sub_logs import *
|
||||||
from .media import *
|
from .media import *
|
||||||
if FEATURES['STREAMERS']:
|
if FEATURES['STREAMERS']:
|
||||||
|
|
|
@ -1,12 +1,9 @@
|
||||||
from files.helpers.const import KOFI_TOKEN
|
from sqlalchemy import Column
|
||||||
|
from sqlalchemy.sql.sqltypes import *
|
||||||
|
|
||||||
if KOFI_TOKEN:
|
from files.classes import Base
|
||||||
from sqlalchemy import Column
|
|
||||||
from sqlalchemy.sql.sqltypes import *
|
|
||||||
|
|
||||||
from files.classes import Base
|
class Transaction(Base):
|
||||||
|
|
||||||
class Transaction(Base):
|
|
||||||
__tablename__ = "transactions"
|
__tablename__ = "transactions"
|
||||||
id = Column(String, primary_key=True)
|
id = Column(String, primary_key=True)
|
||||||
created_utc = Column(Integer)
|
created_utc = Column(Integer)
|
||||||
|
|
Loading…
Reference in New Issue