generalise /reload
このコミットが含まれているのは:
コミット
7fd97d32f1
|
@ -390,10 +390,11 @@ def reload():
|
|||
'''
|
||||
Re-read config.toml
|
||||
'''
|
||||
with viewership.lock:
|
||||
with open(CONFIG_FILE) as fp:
|
||||
config = toml.load(fp)
|
||||
CONFIG['captcha']['fonts'] = config['captcha']['fonts']
|
||||
CONFIG['stream']['hls_time'] = config['stream']['hls_time']
|
||||
for key in config:
|
||||
CONFIG[key] = config[key]
|
||||
|
||||
# this exists for the same reason as in /debug
|
||||
response = make_response(CONFIG)
|
||||
|
|
読み込み中…
新しいイシューから参照