2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 13:55:24 +00:00

fixed tempfile bleed through

This commit is contained in:
2025-12-17 22:10:32 +00:00
parent 09a9b6e18f
commit 9392d4a2d9
3 changed files with 19 additions and 21 deletions

View File

@@ -256,9 +256,10 @@ def _handle_obsolete_wallets(old_wallet, dwgfile, scanfilename, parser_label):
if w_renamed := _find_renamed_x_wallet(old_wallet, scanfilename, parser_label):
return w_renamed
message = f" - Warning {parser_label} XFILES {old_wallet} {(old_wallet==x.group(1))} in {path}"
# 'path' is not in scope here; use the drawing file's path for messages
message = f" - Warning {parser_label} XFILES {old_wallet} {(old_wallet==x.group(1))} in {dwgfile.dwgpath}"
print(message)
DataIssue.objects.update_or_create(parser=parser_label, message=message, url=f"/dwgdataraw/{path}")
DataIssue.objects.update_or_create(parser=parser_label, message=message, url=f"/dwgdataraw/{dwgfile.dwgpath}")
return False
if old_wallet in old_wallets: