This commit is contained in:
Jonas Zeunert
2020-03-09 20:37:56 +01:00
parent 7d23146cec
commit c6d254bc08

View File

@@ -10,5 +10,5 @@ class DisplayFactory:
return SpecialDisplay(name) return SpecialDisplay(name)
def createPlayerDisplay(self, id): def createPlayerDisplay(self, id):
name = next(displayName['name'] for displayName in self.displayNames if "Player" in displayName['name']' and str(id) in displayName['name']) name = next(displayName['name'] for displayName in self.displayNames if "Player" in displayName['name'] and str(id) in displayName['name'])
return PlayerDisplay(name) return PlayerDisplay(name)