Fix exception when no tags are provided.
This commit is contained in:
parent
d160d9b562
commit
7f9bf38da0
1 changed files with 4 additions and 2 deletions
|
@ -64,7 +64,8 @@ class Notification(BaseModel):
|
|||
- `MapName`: `str`, displayed map name
|
||||
- `ByUserID`: `int`, who took the record
|
||||
- `ByUserName`: `str`, who took the record (displayed name)
|
||||
- `NewTime`: `int`, might be the either the amount of seconds or the time id (TODO: correct the info)
|
||||
- `NewTime`: `int`, Convertable to seconds using the following code:
|
||||
`seconds = ((NewTime % 60000) / 100) * 2`
|
||||
|
||||
- 1: Your time on <map> was removed
|
||||
- Reason IDs:
|
||||
|
@ -280,5 +281,6 @@ def convertTagsToNames(tags):
|
|||
global ids_to_names
|
||||
tagNames = []
|
||||
for i in tags.split(","):
|
||||
tagNames.append(ids_to_names[int(i)])
|
||||
if i.isdecimal():
|
||||
tagNames.append(ids_to_names[int(i)])
|
||||
return tagNames
|
||||
|
|
Loading…
Reference in a new issue