From 1a048a0e074ee26bd45dda9731c78c2ecef42fba Mon Sep 17 00:00:00 2001 From: SekiDesu01 Date: Wed, 11 Mar 2026 16:52:17 -0300 Subject: [PATCH 1/2] Fixed recepit lenght --- migrate.py | 10 +++++----- templates/macros/modals.html | 35 ++++++++++++++++++++++++++++++----- 2 files changed, 35 insertions(+), 10 deletions(-) diff --git a/migrate.py b/migrate.py index aedae21..0e56022 100644 --- a/migrate.py +++ b/migrate.py @@ -6,12 +6,12 @@ def upgrade_db(): try: with sqlite3.connect(DB_FILE) as conn: # Add stock column - conn.execute("ALTER TABLE products ADD COLUMN stock REAL DEFAULT 0") - print("Successfully added 'stock' column.") + # conn.execute("ALTER TABLE products ADD COLUMN stock REAL DEFAULT 0") + # print("Successfully added 'stock' column.") - # App.py also expects unit_type, adding it to prevent future headaches - conn.execute("ALTER TABLE products ADD COLUMN unit_type TEXT DEFAULT 'unit'") - print("Successfully added 'unit_type' column.") + # # App.py also expects unit_type, adding it to prevent future headaches + # conn.execute("ALTER TABLE products ADD COLUMN unit_type TEXT DEFAULT 'unit'") + # print("Successfully added 'unit_type' column.") conn.execute("ALTER TABLE dicom ADD COLUMN image_url TEXT;") print("Successfully added 'image_url' column.") diff --git a/templates/macros/modals.html b/templates/macros/modals.html index f024510..c13eb46 100644 --- a/templates/macros/modals.html +++ b/templates/macros/modals.html @@ -49,14 +49,39 @@