fix 500 errors

master
Aevann1 2022-07-02 08:51:19 +02:00
parent d0d15c319a
commit 1a0b2b6813
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ class Comment(Base):
author = relationship("User", primaryjoin="User.id==Comment.author_id")
senttouser = relationship("User", primaryjoin="User.id==Comment.sentto")
parent_comment = relationship("Comment", remote_side=[id], back_populates="child_comments")
child_comments = relationship("Comment", remote_side=[parent_comment_id], back_populates="parent_comment")
child_comments = relationship("Comment", lazy="dynamic" remote_side=[parent_comment_id], back_populates="parent_comment")
awards = relationship("AwardRelationship", order_by="AwardRelationship.awarded_utc.desc()", back_populates="comment")
flags = relationship("CommentFlag", order_by="CommentFlag.created_utc")
options = relationship("CommentOption", order_by="CommentOption.id")

View File

@ -6,7 +6,7 @@ from flask import *
from files.__main__ import app, limiter, cache
from os import environ
@app.get("/votes/<linK>")
@app.get("/votes/<link>")
@auth_required
def vote_info_get(v, link):
try: