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 <noreply@anthropic.com>
This commit is contained in:
cproudlock
2026-07-13 13:44:22 -04:00
parent b2dea82ac9
commit 49d311b56e

View File

@@ -394,15 +394,17 @@ def stage_applications(h):
for a in h.source.rows('shopdb_src', for a in h.source.rows('shopdb_src',
'SELECT appid, appname, appdescription, supportteamid, ' 'SELECT appid, appname, appdescription, supportteamid, '
'isinstallable, applicationnotes, installpath FROM applications ' 'isinstallable, applicationnotes, installpath, applicationlink, '
'WHERE isactive=1'): 'documentationpath FROM applications WHERE isactive=1'):
name = (a['appname'] or '').strip() name = (a['appname'] or '').strip()
if not name: if not name:
continue continue
payload = {'appname': name, 'appdescription': a['appdescription'], payload = {'appname': name, 'appdescription': a['appdescription'],
'supportteamid': h.ids.get('supportteam', a['supportteamid']), 'supportteamid': h.ids.get('supportteam', a['supportteamid']),
'isinstallable': bool(a['isinstallable']), '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', newid = _upsert(h, '/api/applications', payload, 'appname', 'appid',
'/api/applications') '/api/applications')
if newid: if newid: