forked from rDrama/rDrama
remove unnecessary relationships
parent
7db7abc3ab
commit
890b21923e
|
@ -39,7 +39,6 @@ class SubmissionOptionVote(Base):
|
||||||
submission_id = Column(Integer, ForeignKey("submissions.id"))
|
submission_id = Column(Integer, ForeignKey("submissions.id"))
|
||||||
|
|
||||||
user = relationship("User")
|
user = relationship("User")
|
||||||
option = relationship("SubmissionOption")
|
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
if "created_utc" not in kwargs: kwargs["created_utc"] = int(time.time())
|
if "created_utc" not in kwargs: kwargs["created_utc"] = int(time.time())
|
||||||
|
@ -89,7 +88,6 @@ class CommentOptionVote(Base):
|
||||||
comment_id = Column(Integer, ForeignKey("comments.id"))
|
comment_id = Column(Integer, ForeignKey("comments.id"))
|
||||||
|
|
||||||
user = relationship("User")
|
user = relationship("User")
|
||||||
option = relationship("CommentOption")
|
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
if "created_utc" not in kwargs: kwargs["created_utc"] = int(time.time())
|
if "created_utc" not in kwargs: kwargs["created_utc"] = int(time.time())
|
||||||
|
|
Loading…
Reference in New Issue