feat: Add CI workflow for running tests and update database URL handling
Some checks failed
Build and Push Docker Image / build-and-push (push) Successful in 1m8s
Deploy to Server / deploy (push) Failing after 2s
Run Tests / test (push) Failing after 9m32s

This commit is contained in:
2025-10-24 19:19:24 +02:00
parent 28fea1f3fe
commit f35607fedc
6 changed files with 28 additions and 18 deletions

View File

@@ -14,4 +14,6 @@ def list_currencies(db: Session = Depends(get_db)):
results = []
for c in db.query(Currency).filter_by(is_active=True).order_by(Currency.code).all():
results.append({"id": c.code, "name": f"{c.name} ({c.code})", "symbol": c.symbol})
if not results:
results.append({"id": "USD", "name": "US Dollar (USD)", "symbol": "$"})
return results