Skip to content

Commit 2c66f27

Browse files
author
Red Giuliano
committed
fixing nitpicks
1 parent 0983eef commit 2c66f27

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

zt_backend/models/state/notebook_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(self):
1414

1515
self.notebook_db_path = notebook_db_path
1616
codeCell = notebook.CodeCell(
17-
id="cell_0",
17+
id=str(uuid.uuid4()).split('-')[0],
1818
code="",
1919
components=[],
2020
variable_name="",

zt_backend/router.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ def run_all():
193193
def create_cell(cellRequest: request.CreateRequest):
194194
if app_state.run_mode == "dev":
195195
logger.debug("Code cell addition request started")
196-
num_cells = len(notebook_state.zt_notebook.cells.keys())
197196
num_cells = str(uuid.uuid4()).split('-')[0]
198197
createdCell = notebook.CodeCell(
199198
id="cell_"+str(num_cells),

0 commit comments

Comments
 (0)