force push

remotes/1693045480750635534/spooky-22
Aevann1 2021-07-25 02:07:36 +02:00
parent 74cfab2e6f
commit cf328851eb
1 changed files with 0 additions and 11 deletions

View File

@ -14,7 +14,6 @@ from .subscriptions import *
from .userblock import *
from .badges import *
from .clients import *
from .paypal import PayPalTxn
from drama.__main__ import Base, cache
from drama.helpers.security import *
@ -155,11 +154,6 @@ class User(Base, Stndrd, Age_times):
lazy="dynamic",
primaryjoin="User.id==SaveRelationship.user_id")
_transactions = relationship(
"PayPalTxn",
lazy="dynamic",
primaryjoin="PayPalTxn.user_id==User.id")
# properties defined as SQL server-side functions
referral_count = deferred(Column(Integer, server_default=FetchedValue()))
follower_count = deferred(Column(Integer, server_default=FetchedValue()))
@ -967,11 +961,6 @@ class User(Base, Stndrd, Age_times):
def boards_modded_ids(self):
return [x.id for x in self.boards_modded]
@property
def txn_history(self):
return self._transactions.filter(PayPalTxn.status != 1).order_by(PayPalTxn.created_utc.desc()).all()
@property
def json_admin(self):
data = self.json_raw