From a525fba1d2b726084648f6140c07fa03a377a0e0 Mon Sep 17 00:00:00 2001 From: LUIS NOVO Date: Fri, 1 Nov 2024 19:53:56 -0300 Subject: [PATCH] fix note_type icon --- migrations/2.surrealql | 1 + migrations/2_down.surrealql | 1 + stream_app/note.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 migrations/2.surrealql create mode 100644 migrations/2_down.surrealql diff --git a/migrations/2.surrealql b/migrations/2.surrealql new file mode 100644 index 0000000..66c1017 --- /dev/null +++ b/migrations/2.surrealql @@ -0,0 +1 @@ +DEFINE FIELD IF NOT EXISTS note_type ON TABLE note TYPE option; diff --git a/migrations/2_down.surrealql b/migrations/2_down.surrealql new file mode 100644 index 0000000..d0213a0 --- /dev/null +++ b/migrations/2_down.surrealql @@ -0,0 +1 @@ +REMOVE FIELD IF EXISTS note_type ON TABLE note; diff --git a/stream_app/note.py b/stream_app/note.py index 2cf063e..2d1f5a4 100644 --- a/stream_app/note.py +++ b/stream_app/note.py @@ -27,7 +27,7 @@ def note_panel(session_id=None, note_id=None): if note_id: note: Note = Note.get(note_id) else: - note: Note = Note() + note: Note = Note(note_type="human") t_preview, t_edit = st.tabs(["Preview", "Edit"]) with t_preview: