forked from rDrama/rDrama
restore the 10 award limit for me
parent
4519db0e57
commit
2026a1a9c7
|
@ -457,7 +457,7 @@ def admin_userawards_post(v):
|
||||||
|
|
||||||
if value:
|
if value:
|
||||||
|
|
||||||
if int(value) > 100 or (int(value) > 10 and v.id != AEVANN_ID): abort(403)
|
if int(value) > 10: abort(403)
|
||||||
|
|
||||||
if int(value): notify_awards[key] = int(value)
|
if int(value): notify_awards[key] = int(value)
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td><i class="{{a['icon']}} {{a['color']}}" style="font-size: 30px"></i></td>
|
<td><i class="{{a['icon']}} {{a['color']}}" style="font-size: 30px"></i></td>
|
||||||
<td>{{a['title']}}</td>
|
<td>{{a['title']}}</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>
|
<td><input autocomplete="off" type="number" class="form-control" name="{{a['kind']}}" min="0" max="10" placeholder="Enter number..."></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue