From 49d311b56eea6a6fb4a782c004b4fbbd9953efbb Mon Sep 17 00:00:00 2001 From: cproudlock Date: Mon, 13 Jul 2026 13:44:22 -0400 Subject: [PATCH] WJ import loader: map application link + documentation path The applications stage dropped applicationlink and documentationpath, so the app detail's "Launch Application" and "Documentation" links were always empty. Map both from the classic applications table. Co-Authored-By: Claude Opus 4.8 --- scripts/site_imports/wjf/run.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/site_imports/wjf/run.py b/scripts/site_imports/wjf/run.py index 7f33215..6a6b9a0 100644 --- a/scripts/site_imports/wjf/run.py +++ b/scripts/site_imports/wjf/run.py @@ -394,15 +394,17 @@ def stage_applications(h): for a in h.source.rows('shopdb_src', 'SELECT appid, appname, appdescription, supportteamid, ' - 'isinstallable, applicationnotes, installpath FROM applications ' - 'WHERE isactive=1'): + 'isinstallable, applicationnotes, installpath, applicationlink, ' + 'documentationpath FROM applications WHERE isactive=1'): name = (a['appname'] or '').strip() if not name: continue payload = {'appname': name, 'appdescription': a['appdescription'], 'supportteamid': h.ids.get('supportteam', a['supportteamid']), 'isinstallable': bool(a['isinstallable']), - 'applicationnotes': a['applicationnotes'], 'installpath': a['installpath']} + 'applicationnotes': a['applicationnotes'], 'installpath': a['installpath'], + 'applicationlink': a['applicationlink'], + 'documentationpath': a['documentationpath']} newid = _upsert(h, '/api/applications', payload, 'appname', 'appid', '/api/applications') if newid: