if a skill has a tag of "system" it is a core skill that should not be uninstalled. put it in a "System" category

pull/6/head
Chris Veilleux 2018-09-30 22:38:25 -05:00
parent 642df28aca
commit ba974a2c7b
1 changed files with 6 additions and 4 deletions

View File

@ -116,10 +116,12 @@ class SkillSummaryEndpoint(SeleneEndpoint):
title=skill['title'],
triggers=skill['triggers']
)
# a skill may have many categories. the first one in the
# list is considered the "primary" category. This is the
# category the marketplace will use to group the skill.
if skill['categories']:
if 'system' in skill['tags']:
skill_category = 'System'
elif skill['categories']:
# a skill may have many categories. the first one in the
# list is considered the "primary" category. This is the
# category the marketplace will use to group the skill.
skill_category = skill['categories'][0]
else:
skill_category = UNDEFINED