From 571ae603c7cb1bb68bff7967bd840f62d63b1a3c Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 12 Mar 2023 11:40:30 +0200 Subject: [PATCH] fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3770101#context --- files/routes/comments.py | 1 + files/routes/posts.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 414ea7758..232e6196d 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -349,6 +349,7 @@ def comment(v:User): vote = CommentVote(user_id=v.id, comment_id=c.id, vote_type=1, + coins=0 ) g.db.add(vote) cache.delete_memoized(comment_idlist) diff --git a/files/routes/posts.py b/files/routes/posts.py index e2aef59eb..547d62907 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -610,7 +610,8 @@ def submit_post(v:User, sub=None): vote = Vote(user_id=v.id, vote_type=1, - submission_id=p.id + submission_id=p.id, + coins=0 ) g.db.add(vote)