Refactor golden image handling in backup upload process</message>
<message>Update the _set_golden_from_path function to improve the handling of existing golden image files. Replace the existing unlink logic with a more robust method that safely removes files or broken symlinks using the missing_ok parameter. This change enhances the reliability of the backup upload process by ensuring that stale references are properly cleared before setting a new golden image path.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# GNSS Guard Server Dependencies
|
||||
|
||||
# Web framework
|
||||
fastapi>=0.104.0
|
||||
uvicorn[standard]>=0.24.0
|
||||
|
||||
# Database
|
||||
sqlalchemy>=2.0.0
|
||||
psycopg2-binary>=2.9.9 # PostgreSQL driver
|
||||
alembic>=1.12.0 # Database migrations (optional)
|
||||
|
||||
# Configuration
|
||||
pydantic>=2.5.0
|
||||
pydantic-settings>=2.1.0
|
||||
python-dotenv>=1.0.0
|
||||
|
||||
# Templates and static files
|
||||
jinja2>=3.1.2
|
||||
python-multipart>=0.0.6 # For form data
|
||||
|
||||
# Security
|
||||
passlib[bcrypt]>=1.7.4 # Password hashing
|
||||
slowapi>=0.1.9 # Rate limiting
|
||||
|
||||
# HTTP client (for health checks and Telegram API)
|
||||
httpx>=0.25.0
|
||||
requests>=2.31.0
|
||||
|
||||
Reference in New Issue
Block a user