logging
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
from displays.PlayerDisplay import PlayerDisplay
|
from displays.PlayerDisplay import PlayerDisplay
|
||||||
from displays.SpecialDisplay import SpecialDisplay
|
from displays.SpecialDisplay import SpecialDisplay
|
||||||
import config
|
import config
|
||||||
|
import logging
|
||||||
class DisplayFactory:
|
class DisplayFactory:
|
||||||
def __init__(self, displayNames):
|
def __init__(self, displayNames):
|
||||||
self.displayNames = displayNames
|
self.displayNames = displayNames
|
||||||
@@ -11,7 +12,7 @@ class DisplayFactory:
|
|||||||
if "Player" in displayName:
|
if "Player" in displayName:
|
||||||
id = displayName.replace("Player", "")
|
id = displayName.replace("Player", "")
|
||||||
displays[id] = PlayerDisplay(displayName)
|
displays[id] = PlayerDisplay(displayName)
|
||||||
|
logging.debug("Created players: %o", displays)
|
||||||
return displays
|
return displays
|
||||||
def createSpecialDisplay(self):
|
def createSpecialDisplay(self):
|
||||||
name = next(displayName['name'] for displayName in self.displayNames if "Special" in displayName['name'])
|
name = next(displayName['name'] for displayName in self.displayNames if "Special" in displayName['name'])
|
||||||
|
|||||||
Reference in New Issue
Block a user