mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
💄— Prevent the refresh delay to be under 5 seconds (fix #42)
This commit is contained in:
parent
76614a2a50
commit
415c37bdb4
2 changed files with 4 additions and 2 deletions
|
@ -168,5 +168,7 @@ async def set_refresh_cookies_view(
|
|||
status_code=status.HTTP_303_SEE_OTHER,
|
||||
)
|
||||
response.set_cookie(key="auto_refresh_enabled", value=auto_refresh_enabled)
|
||||
response.set_cookie(key="auto_refresh_seconds", value=int(auto_refresh_seconds))
|
||||
response.set_cookie(
|
||||
key="auto_refresh_seconds", value=max(5, int(auto_refresh_seconds))
|
||||
)
|
||||
return response
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
name="auto_refresh_seconds"
|
||||
type="number"
|
||||
form="refresh-form"
|
||||
min="1"
|
||||
min="5"
|
||||
value="{{ auto_refresh_seconds }}"> seconds
|
||||
</label>
|
||||
</li>
|
||||
|
|
Loading…
Reference in a new issue