remotes/1693045480750635534/spooky-22
Aevann1 2021-10-02 14:50:32 +02:00
parent 9a791d8efd
commit e2dda73c17
2 changed files with 3 additions and 3 deletions

View File

@ -171,8 +171,8 @@ def settings_profile_post(v):
frontsize = request.values.get("frontsize")
if frontsize:
if frontsize in ["25", "50", "100"]:
v.frontsize = int(frontsize)
if frontsize in [25, 50, 100]:
v.frontsize = frontsize
updated = True
cache.delete_memoized(frontlist)
else: abort(400)

View File

@ -23,7 +23,7 @@
<p>Change how many posts appear on every page.</p>
<div class="input-group mb2">
<select id='frontsize' class="form-control" form="profile-settings" name="frontsize" onchange="post_toast('/settings/profile?frontsize='+document.getElementById('frontsize').value)">
{% for entry in ["25", "50", "100"] %}
{% for entry in [25, 50, 100] %}
<option value="{{entry}}"{{' selected' if v.frontsize==entry else ''}}>{{entry}}</option>
{% endfor %}
</select>