fix: remove hardcoded Windows temp path debug code from to_sql.py
Removed debug file write at line 930 that hardcoded C:\Users\marye\AppData\Local\Temp\opencode\build_db_input_debug.txt All 36 to_sql tests pass (no regression)
This commit is contained in:
@@ -926,16 +926,6 @@ def build_db_input(
|
|||||||
|
|
||||||
rec = records[path_idx] if records and path_idx < len(records) else {}
|
rec = records[path_idx] if records and path_idx < len(records) else {}
|
||||||
|
|
||||||
if path_idx == 0 and rec:
|
|
||||||
with open(r'C:\Users\marye\AppData\Local\Temp\opencode\build_db_input_debug.txt', 'w') as _f:
|
|
||||||
_f.write(f"rec keys count={len(rec)}\n")
|
|
||||||
_f.write(f"has_HV-ANNUAL-H={'HV-ANNUAL-H' in rec}\n")
|
|
||||||
_f.write(f"has_working_storage={'working_storage' in rec}\n")
|
|
||||||
_f.write(f"HV-ANNUAL-H via _rec_get={_rec_get(rec, 'HV-ANNUAL-H', 'NOT_FOUND')!r}\n")
|
|
||||||
if 'HV-ANNUAL-H' in rec:
|
|
||||||
_f.write(f"HV-ANNUAL-H value={rec['HV-ANNUAL-H']!r}\n")
|
|
||||||
_f.write(f"all keys sorted={sorted(rec.keys())}\n")
|
|
||||||
|
|
||||||
for sql in sql_meta:
|
for sql in sql_meta:
|
||||||
atype = sql.get('type', '')
|
atype = sql.get('type', '')
|
||||||
table = sql.get('table', '')
|
table = sql.get('table', '')
|
||||||
|
|||||||
Reference in New Issue
Block a user