1.6 KiB
1.6 KiB
| id | type | title | tags | importance | confidence | created | updated | relations | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 650babda-b99b-4017-92b7-692bada7669d | fix | Fix: Inverted TESTING env check in paper-dynasty-database dependencies.py |
|
0.5 | 0.8 | 2026-03-03T21:22:08.248652+00:00 | 2026-03-03T21:22:09.788800+00:00 |
|
Problem
app/dependencies.py:33 had if os.environ.get('TESTING') == 'False': — inverted logic that only switched to the dev URL when TESTING was False. Also, .env had TESTING=TRUE with a leading space, so the env var was never actually set (key was TESTING not TESTING).
Root Cause
- Inverted string comparison (
'False'instead of'True') - Leading space in
.envkey name silently prevented the var from loading
Solution
dependencies.py:33:== 'False'→== 'True'.env:64:TESTING=TRUE→TESTING=True(remove leading space, normalize case to match comparison)- Updated
.envcomment from "Set to 'False'" to "Set to 'True'"
Files Changed
app/dependencies.py.env
PR
cal/paper-dynasty-database#40 (issue #23)