fix: correct inverted TESTING env check and leading space in .env (#23) #40
No reviewers
Labels
No Label
ai-changes-requested
ai-failed
ai-merged
ai-pr-opened
ai-reviewed
ai-reviewing
ai-reviewing
ai-working
bug
enhancement
evolution
performance
phase-0
phase-1a
phase-1b
phase-1c
phase-1d
security
tech-debt
todo
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-database#40
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "ai/paper-dynasty-database#23"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
app/dependencies.py:33: The conditionif os.environ.get('TESTING') == 'False':was inverted — it only routed to the dev URL when TESTING wasFalse, the opposite of the intent. Changed to== 'True'..env:64:TESTING=TRUEhad a leading space, meaning the env var was never set (the key wasTESTINGnotTESTING). Removed the leading space. Also normalizedTRUE→Trueto match the string comparison independencies.py..envcomment from "Set to 'False'" to "Set to 'True'" to match the corrected logic.Files Changed
app/dependencies.py.envTest Results
No test suite — changes verified by code review.
Other observations
The linter (ruff) auto-reformatted quote styles in
dependencies.pyas part of the pre-commit hook. The cosmetic diff is larger than the functional change as a result.751c9c5d52to9fc7a9449e