Add required but irrelevant fields

main
Bob Mottram 2021-05-16 17:37:03 +01:00
parent c48646283d
commit 65048bb3b3
1 changed files with 6 additions and 1 deletions

View File

@ -731,6 +731,8 @@ def htmlHeaderWithPersonMarkup(cssFilename: str, instanceTitle: str,
skillsMarkup += ',\n'
sk = skillDict['hasOccupation']
roleName = sk['name']
if not roleName:
roleName = 'member'
category = \
sk['occupationalCategory']['codeValue']
categoryUrl = \
@ -773,7 +775,10 @@ def htmlHeaderWithPersonMarkup(cssFilename: str, instanceTitle: str,
skillsMarkup += ' "@type": "Occupation",\n'
skillsMarkup += ' "name": "' + ocName + '",\n'
skillsMarkup += \
' "skills": ' + skillsListStr + '\n'
' "skills": ' + skillsListStr + ',\n'
skillsMarkup += ' "estimatedSalary": 0,\n'
skillsMarkup += \
' "occupationLocation": "fediverse",\n'
skillsMarkup += ' }'
firstEntry = False
skillsMarkup += '\n ],\n'