Fix dynamic tax year fallback in models and upload endpoints

This commit is contained in:
Atharv1705
2026-10-03 11:46:55 +05:30
parent 31fbc85565
commit 34a2cc0098
13 changed files with 139 additions and 14 deletions
+10
View File
@@ -0,0 +1,10 @@
import sys
sys.path.append('.')
from app.db import SessionLocal
from app.models import PersonalDocument
db = SessionLocal()
docs = db.query(PersonalDocument).filter(PersonalDocument.tax_year == 2026, PersonalDocument.review_status == 'pending').all()
print("2026 pending docs:")
for d in docs:
print(f"ID {d.id} deleted_at: {d.deleted_at}")