Skip to content

Commit

Permalink
ECNQueue.isValidItemName bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benne238 committed Jan 14, 2021
1 parent 8609aee commit 2b9e9d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/ECNQueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def isValidItemName(name: str) -> bool:
bool: Name is valid item name.
"""
itemPattern = re.compile("^[0123456789]{1,3}$")
return True if itemPattern.match(name) else False
return True if itemPattern.match(str(name)) else False



Expand Down Expand Up @@ -1346,3 +1346,7 @@ def loadQueues() -> list:
queues.append(Queue(queue))

return queues

if __name__ == "__main__":
item = Item("ce", 11)
print()

0 comments on commit 2b9e9d1

Please sign in to comment.