mirror of https://gitlab.com/bashrc2/epicyon
Use modified city
parent
8ff0a3a33e
commit
4537e96d8a
|
@ -720,6 +720,24 @@ def htmlHeaderWithPersonMarkup(cssFilename: str, instanceTitle: str,
|
||||||
if not actorJson:
|
if not actorJson:
|
||||||
return htmlStr
|
return htmlStr
|
||||||
|
|
||||||
|
cityMarkup = ''
|
||||||
|
if city:
|
||||||
|
city = city.lower().title()
|
||||||
|
addComma = ''
|
||||||
|
countryMarkup = ''
|
||||||
|
if ',' in city:
|
||||||
|
country = city.split(',', 1)[1].strip().title()
|
||||||
|
city = city.split(',', 1)[0]
|
||||||
|
countryMarkup = \
|
||||||
|
' "addressCountry": "' + country + '"\n'
|
||||||
|
addComma = ','
|
||||||
|
cityMarkup = \
|
||||||
|
' "address": {\n' + \
|
||||||
|
' "@type": "PostalAddress",\n' + \
|
||||||
|
' "addressLocality": "' + city + '"' + addComma + '\n' + \
|
||||||
|
countryMarkup + \
|
||||||
|
' },\n'
|
||||||
|
|
||||||
skillsMarkup = ''
|
skillsMarkup = ''
|
||||||
if actorJson.get('hasOccupation'):
|
if actorJson.get('hasOccupation'):
|
||||||
if isinstance(actorJson['hasOccupation'], list):
|
if isinstance(actorJson['hasOccupation'], list):
|
||||||
|
@ -793,23 +811,6 @@ def htmlHeaderWithPersonMarkup(cssFilename: str, instanceTitle: str,
|
||||||
firstEntry = False
|
firstEntry = False
|
||||||
skillsMarkup += '\n ],\n'
|
skillsMarkup += '\n ],\n'
|
||||||
|
|
||||||
cityMarkup = ''
|
|
||||||
if city:
|
|
||||||
city = city.lower().title()
|
|
||||||
addComma = ''
|
|
||||||
countryMarkup = ''
|
|
||||||
if ',' in city:
|
|
||||||
country = city.split(',', 1)[1].strip().title()
|
|
||||||
city = city.split(',', 1)[0]
|
|
||||||
countryMarkup = \
|
|
||||||
' "addressCountry": "' + country + '"\n'
|
|
||||||
addComma = ','
|
|
||||||
cityMarkup = \
|
|
||||||
' "address": {\n' + \
|
|
||||||
' "@type": "PostalAddress",\n' + \
|
|
||||||
' "addressLocality": "' + city + '"' + addComma + '\n' + \
|
|
||||||
countryMarkup + \
|
|
||||||
' },\n'
|
|
||||||
description = removeHtml(actorJson['summary'])
|
description = removeHtml(actorJson['summary'])
|
||||||
nameStr = removeHtml(actorJson['name'])
|
nameStr = removeHtml(actorJson['name'])
|
||||||
personMarkup = \
|
personMarkup = \
|
||||||
|
|
Loading…
Reference in New Issue