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:
Kevin Chung
2019-01-12 14:04:51 -05:00
committed by GitHub
parent fed0366ac0
commit e70c985d73
2 changed files with 21 additions and 21 deletions

View File

@@ -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:

View File

@@ -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)