Drop testing end-point and thread form data
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke Murphy 2020-07-05 02:51:17 +02:00
parent c3fda011f1
commit 7fe5c23c58
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 3 additions and 13 deletions

View File

@ -1,6 +1,5 @@
"""Celery tasks module."""
from magic_app.app import celery
from magic_app.forms import form_to_env
from magic_app.templates import clone_app_template, create_data_dir
@ -11,4 +10,5 @@ def install_app(app_name: str, form_data) -> None:
clone_app_template(app_name)
# Note(decentral1se): this is where I left off...
env = form_to_env() # noqa
# from magic_app.forms import form_to_env
# env = form_to_env(app_name, form_data) # noqa

View File

@ -20,22 +20,12 @@ def install(app_name):
form = GiteaInstallForm()
if form.validate_on_submit():
install_app.apply_async(args=[app_name])
install_app.apply_async(args=[app_name, form.data])
return redirect(url_for("apps.status", app_name=app_name))
return render_template("app_install.html", app_name=app_name, form=form)
@apps.route("/install-test/<app_name>")
def install_test(app_name):
"""Development aid to quickly test installation logic."""
from magic_app.tasks import install_app
install_app.apply_async(args=[app_name])
return f"<a href='{app_name}'>Try again?</a>"
@apps.route("/status/<app_name>")
def status(app_name):
"""Show status of applications."""