From 77fee2e27249f23a722ea190dd30cf2613a532b4 Mon Sep 17 00:00:00 2001 From: Mondo Diaz Date: Fri, 16 Jan 2026 20:15:14 +0000 Subject: [PATCH] Fix Python SyntaxWarning in database migration regex Use raw string (r"") for SQL containing regex pattern to avoid Python SyntaxWarning about invalid escape sequence '\.' --- CHANGELOG.md | 1 + backend/app/database.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 427ae5c..5c3f610 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -84,6 +84,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed deploy jobs running when secrets scan fails (added `secrets` to deploy dependencies) - Fixed dev environment memory requests to equal limits per cluster Kyverno policy - Fixed init containers missing resource limits (Kyverno policy compliance) +- Fixed Python SyntaxWarning for invalid escape sequence in database migration regex pattern ### Removed - Removed unused `store_streaming()` method from storage.py (#51) diff --git a/backend/app/database.py b/backend/app/database.py index 1c21541..bcc0aa4 100644 --- a/backend/app/database.py +++ b/backend/app/database.py @@ -210,7 +210,7 @@ def _run_migrations(): END $$; """, # Migrate existing semver tags to package_versions - """ + r""" DO $$ BEGIN IF EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = 'package_versions') THEN