remotes/1693045480750635534/spooky-22
Aevann1 2021-07-31 15:42:03 +02:00
parent 56ac1d3a9c
commit 0ca8f34856
2 changed files with 3 additions and 3 deletions

View File

@ -418,8 +418,8 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
@property
@lazy
def test(self):
print(self.flags.order_by(Flag.created_utc))
def ordered_flags(self):
return self.flags.order_by(Flag.created_utc)
@property
@lazy

View File

@ -489,7 +489,7 @@
<strong><i class="far fa-fw fa-flag"></i> Reported by:</strong>
<pre></pre>
<ul style="padding-left:20px; margin-bottom: 0;">
{% for f in p.flags %}
{% for f in p.ordered_flags %}
<li><a href="{{f.user.url}}">@{{f.user.username}}</a>: {{f.reason}}</li>
{% endfor %}
</ul>