fix some typos and other

This commit is contained in:
Bastian Schroll 2018-01-11 13:01:27 +01:00
parent 0c7fc84089
commit 6e011301d4
4 changed files with 16 additions and 8 deletions

View file

@ -66,21 +66,21 @@ class DescriptionList:
logging.debug("create new descriptionList")
self._descriptionList = {}
def getShortDescription(self, id):
def getShortDescription(self, checkId):
"""!Returns the short description of given id
@return short description or empty string"""
try:
return self._descriptionList[str(id)]["shortDescription"]
return self._descriptionList[str(checkId)]["shortDescription"]
except:
return ""
def getLongDescription(self, id):
def getLongDescription(self, checkId):
"""!Returns the long description of given id
@return long description or empty string"""
try:
return self._descriptionList[str(id)]["longDescription"]
return self._descriptionList[str(checkId)]["longDescription"]
except:
return ""