forked from rDrama/rDrama
fdfd
parent
edebdfac05
commit
d6d85b9c65
|
@ -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…
Reference in New Issue