fsdfs
This commit is contained in:
parent
a16d56358c
commit
c5f8e567bb
10 changed files with 77 additions and 7 deletions
|
@ -1,10 +1,10 @@
|
|||
from flask import *
|
||||
from sqlalchemy import *
|
||||
from sqlalchemy.orm import relationship, lazyload
|
||||
|
||||
from .submission import Submission
|
||||
from .comment import Comment
|
||||
from files.__main__ import Base
|
||||
from files.helpers.lazy import lazy
|
||||
|
||||
class OauthApp(Base):
|
||||
|
||||
|
@ -32,6 +32,7 @@ class OauthApp(Base):
|
|||
return str(time.strftime("%d/%B/%Y %H:%M:%S UTC", time.gmtime(self.created_utc)))
|
||||
|
||||
@property
|
||||
@lazy
|
||||
def permalink(self): return f"/admin/app/{self.id}"
|
||||
|
||||
|
||||
|
@ -55,6 +56,8 @@ class OauthApp(Base):
|
|||
|
||||
return [x[0] for x in posts.all()]
|
||||
|
||||
|
||||
|
||||
class ClientAuth(Base):
|
||||
|
||||
__tablename__ = "client_auths"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue