mirror of https://gitlab.com/bashrc2/epicyon
Medical ontology
parent
62dc1aace7
commit
5d54f41533
File diff suppressed because it is too large
Load Diff
|
@ -44,7 +44,7 @@ from content import getPriceFromString
|
|||
def _dfcProductTypes() -> []:
|
||||
# this list should match the ontology json files
|
||||
# eg. ontology/foodTypes.json
|
||||
return ['food', 'tool', 'clothes']
|
||||
return ['food', 'tool', 'clothes', 'medical']
|
||||
|
||||
|
||||
def _loadDfcIds(baseDir: str, systemLanguage: str,
|
||||
|
|
2
tests.py
2
tests.py
|
@ -5190,7 +5190,7 @@ def _testGetPriceFromString() -> None:
|
|||
|
||||
|
||||
def _translateOntology() -> None:
|
||||
ontologyTypes = ('food', 'clothes', 'tool')
|
||||
ontologyTypes = ('food', 'clothes', 'tool', 'medical')
|
||||
url = 'https://translate.astian.org'
|
||||
apiKey = None
|
||||
ltLangList = libretranslateLanguages(url, apiKey)
|
||||
|
|
|
@ -363,7 +363,7 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
|
|||
extraFields += '<br>' + \
|
||||
editTextField(translate['Type of shared item. eg. hat'] + ':',
|
||||
'itemType', '', '', True)
|
||||
categoryTypes = ("food", "clothes", "tool")
|
||||
categoryTypes = ("food", "clothes", "tool", "medical")
|
||||
catStr = translate['Category of shared item. eg. clothing']
|
||||
extraFields += '<label class="labels">' + catStr + '</label><br>\n'
|
||||
|
||||
|
|
Loading…
Reference in New Issue