Add paramter to change between main-ric and sub-ric

This commit is contained in:
Lars Gremme 2020-04-22 20:24:54 +02:00
parent 23e7406f48
commit 6912c59785
2 changed files with 8 additions and 0 deletions

View file

@ -103,6 +103,11 @@ filter_range_end = 9999999
# descriptions are loaded from csv/poc.csv
idDescribed = 0
# Main-RIC with Subric (0 - off)
# Only Sub-RIC (1 - on)
# descriptions are loaded from csv/poc.csv
onlysubric = 0
# Static Massages for Subrics.
rica = Feuer
ricb = TH

View file

@ -110,6 +110,9 @@ def getDescription(typ, data):
elif typ == "ZVEI":
resultStr = zveiDescribtionList[data]
elif typ == "POC":
if globalVars.config.getint("POC", "onlysubric"):
resultStr = ricDescribtionList[data] # only SubRIC
else:
resultStr = ricDescribtionList[data[:-1]] # MainRIC
resultStr += " " + ricDescribtionList[data] # SubRIC
else: