Browse Source

Change Exemplary "cooldown" to 8 hours

merge-requests/40/head
Deimos 6 years ago
parent
commit
f20cef5560
  1. 2
      tildes/tildes/models/user/user.py
  2. 2
      tildes/tildes/templates/macros/comments.jinja2

2
tildes/tildes/models/user/user.py

@ -248,6 +248,6 @@ class User(DatabaseModel):
if not self.last_exemplary_label_time: if not self.last_exemplary_label_time:
return True return True
return utc_now() - self.last_exemplary_label_time > timedelta(hours=24)
return utc_now() - self.last_exemplary_label_time > timedelta(hours=8)
return True return True

2
tildes/tildes/templates/macros/comments.jinja2

@ -262,7 +262,7 @@
{% endif %} {% endif %}
>{{ label.name|lower }}</a> >{{ label.name|lower }}</a>
{% if label.name == "EXEMPLARY" %} {% if label.name == "EXEMPLARY" %}
<div class="comment-label-note">One per day</div>
<div class="comment-label-note">One per 8 hours</div>
{% endif %} {% endif %}
</li> </li>
{% endfor %} {% endfor %}

Loading…
Cancel
Save