Get skills list

main
Bob Mottram 2021-05-16 18:26:04 +01:00
parent c08b418184
commit 8d6e5812be
1 changed files with 3 additions and 2 deletions

View File

@ -201,6 +201,7 @@ from shares import addShare
from shares import removeShare
from shares import expireShares
from categories import setHashtagCategory
from utils import getOccupationSkills
from utils import getOccupationName
from utils import setOccupationName
from utils import loadTranslationsFromFile
@ -7491,7 +7492,7 @@ class PubServer(BaseHTTPRequestHandler):
accessKeys = \
self.server.keyShortcuts[nickname]
actorSkillsList = \
actorJson['hasOccupation']['skills']
getOccupationSkills(actorJson)
skills = getSkillsFromList(actorSkillsList)
city = self._getSpoofedCity(baseDir,
nickname, domain)
@ -7532,7 +7533,7 @@ class PubServer(BaseHTTPRequestHandler):
else:
if self._fetchAuthenticated():
actorSkillsList = \
actorJson['hasOccupation']['skills']
getOccupationSkills(actorJson)
skills = getSkillsFromList(actorSkillsList)
msg = json.dumps(skills,
ensure_ascii=False)