mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-04 13:57:44 +00:00
fix some typos and other
This commit is contained in:
parent
0c7fc84089
commit
6e011301d4
4 changed files with 16 additions and 8 deletions
|
|
@ -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 ""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue