From 7c6a97b3de7ade966c9f89857f113aa85e3a451d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 16 May 2021 17:16:38 +0100 Subject: [PATCH] Indentation --- webapp_utils.py | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/webapp_utils.py b/webapp_utils.py index a2f4d7954..54b09a13d 100644 --- a/webapp_utils.py +++ b/webapp_utils.py @@ -735,24 +735,25 @@ def htmlHeaderWithPersonMarkup(cssFilename: str, instanceTitle: str, sk['occupationalCategory']['codeValue'] categoryUrl = \ 'https://www.onetonline.org/link/summary/"' + category - skillsMarkup += '{\n' - skillsMarkup += ' "@type": "Role",\n' - skillsMarkup += ' "hasOccupation": {\n' - skillsMarkup += ' "@type": "Occupation",\n' - skillsMarkup += ' "name": ' + roleName + ',\n' - skillsMarkup += ' "occupationalCategory": {\n' - skillsMarkup += ' "@type": "CategoryCode",\n' - skillsMarkup += ' "inCodeSet": {\n' - skillsMarkup += ' "@type": "CategoryCodeSet",\n' - skillsMarkup += ' "name": "O*Net-SOC",\n' - skillsMarkup += ' "dateModified": "2019",\n' + skillsMarkup += ' {\n' + skillsMarkup += ' "@type": "Role",\n' + skillsMarkup += ' "hasOccupation": {\n' + skillsMarkup += ' "@type": "Occupation",\n' + skillsMarkup += ' "name": ' + roleName + ',\n' + skillsMarkup += ' "occupationalCategory": {\n' + skillsMarkup += ' "@type": "CategoryCode",\n' + skillsMarkup += ' "inCodeSet": {\n' + skillsMarkup += ' "@type": "CategoryCodeSet",\n' + skillsMarkup += ' "name": "O*Net-SOC",\n' + skillsMarkup += ' "dateModified": "2019",\n' skillsMarkup += \ - ' "url": "https://www.onetonline.org/"\n' - skillsMarkup += ' },\n' - skillsMarkup += ' "codeValue": "' + category + '",\n' - skillsMarkup += ' "url": "' + categoryUrl + '"\n' - skillsMarkup += ' }\n' - skillsMarkup += ' }' + ' "url": "https://www.onetonline.org/"\n' + skillsMarkup += ' },\n' + skillsMarkup += ' "codeValue": "' + category + '",\n' + skillsMarkup += ' "url": "' + categoryUrl + '"\n' + skillsMarkup += ' }\n' + skillsMarkup += ' }\n' + skillsMarkup += ' }' elif skillDict['@type'] == 'Occupation': if not firstEntry: skillsMarkup += ',\n'