feat: Enhance Python environment setup with system Python option and improve dependency installation
Some checks failed
Run Tests / e2e tests (push) Failing after 50s
Run Tests / lint tests (push) Failing after 1m53s
Run Tests / unit tests (push) Failing after 2m25s

refactor: Clean up imports in currencies and users routes
fix: Update theme settings saving logic and clean up test imports
This commit is contained in:
2025-10-27 18:39:20 +01:00
parent 7385bdad3e
commit 54137b88d7
8 changed files with 42 additions and 26 deletions

View File

@@ -43,15 +43,14 @@ def backfill(
engine = create_engine(db_url)
with engine.begin() as conn:
# Ensure currency table exists
res = (
if db_url.startswith("sqlite:"):
conn.execute(
text(
"SELECT name FROM sqlite_master WHERE type='table' AND name='currency';"
)
)
if db_url.startswith("sqlite:")
else conn.execute(text("SELECT to_regclass('public.currency');"))
)
else:
conn.execute(text("SELECT to_regclass('public.currency');"))
# Note: we don't strictly depend on the above - we assume migration was already applied
# Helper: find or create currency by code

View File

@@ -16,8 +16,7 @@ from __future__ import annotations
import argparse
import logging
import os
from typing import Iterable, Optional
from typing import Optional
import psycopg2
from psycopg2 import errors