🤡(backend-demo) remove code_editor from demo

We removed the template code_editor from app, so
we redapt the demo to fit the old template.
The field code_editor is not needed anymore.
This commit is contained in:
Anthony LC
2024-05-02 13:58:19 +02:00
committed by Anthony LC
parent d967896874
commit c7a5b5f3fb
4 changed files with 64 additions and 566 deletions

View File

@@ -110,9 +110,6 @@ def create_demo(stdout):
queue = BulkQueue(stdout)
with Timeit(stdout, "Creating Template"):
with open("demo/data/template/code_editor.json", "r") as file:
json_data = json.load(file)
with open("demo/data/template/code.txt", "r") as text_file:
code_data = text_file.read()
@@ -123,7 +120,6 @@ def create_demo(stdout):
models.Template(
title="Demo Template",
description="This is the demo template",
code_editor=json_data,
code=code_data,
css=css_data,
is_public=True,