此儲存庫已於 2020-09-13 封存。您可以查看檔案並進行 Clone,但無法推送或開啟問題或合併請求。
Files
magic-app/magic_app/tasks.py
Luke Murphy 7fe5c23c58
已通過所有檢查
continuous-integration/drone/push Build is passing
Drop testing end-point and thread form data
2020-07-05 02:51:17 +02:00

15 行
437 B
Python

"""Celery tasks module."""
from magic_app.app import celery
from magic_app.templates import clone_app_template, create_data_dir
@celery.task
def install_app(app_name: str, form_data) -> None:
"""Install an application."""
create_data_dir()
clone_app_template(app_name)
# Note(decentral1se): this is where I left off...
# from magic_app.forms import form_to_env
# env = form_to_env(app_name, form_data) # noqa