SQLAlchemy enters an infinite loop trying to return upvote count.
This does not happen if there is more than one post in the group or if the post has received at least one upvote.
Reproduce:
Create a new group
Post a single Star
Visit the group page
At this point, nothing more happens. If execution is halted, stacktrace shows that the interpreter was always somewhere within Oneup.oneup_count method, but always at a different point. I already tried rewriting the filter in that method, but don't know a way around using the count() method.
SQLAlchemy enters an infinite loop trying to return upvote count.
This does not happen if there is more than one post in the group or if the post has received at least one upvote.
Reproduce:
At this point, nothing more happens. If execution is halted, stacktrace shows that the interpreter was always somewhere within
Oneup.oneup_count
method, but always at a different point. I already tried rewriting the filter in that method, but don't know a way around using thecount()
method.