Update JS file name and path and HTML template file name

This commit is contained in:
2026-01-05 21:48:12 +00:00
parent ab12e4b5a5
commit 95bcf56cd4
3 changed files with 3 additions and 3 deletions

View File

@@ -17,11 +17,11 @@ def load(app):
if request.method == 'POST':
set_config('cat_sub_categories', request.form.get('categories'))
set_config('cat_sub_cooldown', request.form.get('cooldown'))
return render_template('category_settings.html', success=True,
return render_template('category_submit_settings.html', success=True,
categories=request.form.get('categories'),
cooldown=request.form.get('cooldown'))
return render_template('category_settings.html',
return render_template('category_submit_settings.html',
categories=get_config('cat_sub_categories') or "",
cooldown=get_config('cat_sub_cooldown') or "3"
)
@@ -94,4 +94,4 @@ def load(app):
app.register_blueprint(plugin_bp)
from CTFd.utils.plugins import register_script
register_script('/plugins/category_submission/assets/inject.js')
register_script('/assets/category_submit.js')