mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +01:00
Fix update_check() logic (#830)
* Fix update_check() logic so that we don't accidentally remove the link to updates * Update CHANGELOG
This commit is contained in:
@@ -16,6 +16,9 @@ Because of the necessary changes to the API, the previously used call to `fetch(
|
|||||||
* Default session cookie to `SameSite=Lax`
|
* Default session cookie to `SameSite=Lax`
|
||||||
* Send initial user information request to MajorLeagueCyber over HTTPS
|
* Send initial user information request to MajorLeagueCyber over HTTPS
|
||||||
|
|
||||||
|
**General**
|
||||||
|
* Fix `update_check()` logic so that we don't accidentally remove the update notification.
|
||||||
|
|
||||||
**Themes**
|
**Themes**
|
||||||
* Remove explicit usage of `script_root` in public JS.
|
* Remove explicit usage of `script_root` in public JS.
|
||||||
* In custom themes, use the `CTFd.fetch()` function (defined in `CTFd.js`) and properly register the url root and CSRF nonce in `base.html` as shown below:
|
* In custom themes, use the `CTFd.fetch()` function (defined in `CTFd.js`) and properly register the url root and CSRF nonce in `base.html` as shown below:
|
||||||
|
|||||||
@@ -71,6 +71,3 @@ def update_check(force=False):
|
|||||||
set_config('next_update_check', next_update_check_time)
|
set_config('next_update_check', next_update_check_time)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
set_config('version_latest', None)
|
set_config('version_latest', None)
|
||||||
|
|
||||||
else:
|
|
||||||
set_config('version_latest', None)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user