fdfd
This commit is contained in:
parent
bdc29d125d
commit
2e09885497
2 changed files with 5 additions and 1 deletions
|
@ -419,7 +419,6 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
|
|||
@property
|
||||
@lazy
|
||||
def ordered_flags(self):
|
||||
print(self.flags.order_by(Flag.created_utc).all())
|
||||
return self.flags.order_by(Flag.created_utc).all()
|
||||
|
||||
@property
|
||||
|
|
|
@ -50,6 +50,7 @@ def post_id(pid, anything=None, v=None):
|
|||
try: pid = int(pid)
|
||||
except Exception as e: pass
|
||||
|
||||
)
|
||||
if v: defaultsortingcomments = v.defaultsortingcomments
|
||||
else: defaultsortingcomments = "top"
|
||||
sort=request.args.get("sort", defaultsortingcomments)
|
||||
|
@ -73,6 +74,10 @@ def post_id(pid, anything=None, v=None):
|
|||
|
||||
post = get_post(pid, v=v)
|
||||
|
||||
print(post.flags)
|
||||
print("sex")
|
||||
print(post.flags.order_by(Flag.created_utc).all())
|
||||
|
||||
if v:
|
||||
votes = g.db.query(CommentVote).filter_by(user_id=v.id).subquery()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue