allow me to give more than 10 awards at a time

master
Aevann1 2022-08-17 08:24:59 +02:00
parent b201d7d28a
commit c2ea38ec68
2 changed files with 2 additions and 2 deletions

View File

@ -377,7 +377,7 @@ def admin_userawards_post(v):
if value:
if int(value) > 10: abort(403)
if int(value) > 10 and v.id != AEVANN_ID: abort(403)
if int(value): notify_awards[key] = int(value)

View File

@ -53,7 +53,7 @@
<tr>
<td><i class="{{a['icon']}} {{a['color']}}" style="font-size: 30px"></i></td>
<td>{{a['title']}}</td>
<td><input autocomplete="off" type="number" class="form-control" name="{{a['kind']}}" min="0" max="10" placeholder="Enter number..."></td>
<td><input autocomplete="off" type="number" class="form-control" name="{{a['kind']}}" min="0" {% if v.id != AEVANN_ID %}max="10"{% endif %} placeholder="Enter number..."></td>
</tr>
{% endfor %}
</table>