🎨 Made manager attributes more flexible
Changed run_after, retryable_on and continue_on to be type Container. We don't need them to be sets. The performance gain of sets over small tuples is nonexistant for in checks and the syntax is more verbose.
This commit is contained in:
@@ -8,7 +8,7 @@ from src.store.managers.manager import Manager
|
||||
class DisplayManager(Manager):
|
||||
"""Manager in charge of adding a game to the UI"""
|
||||
|
||||
run_after = set((SteamAPIManager, SGDBManager))
|
||||
run_after = (SteamAPIManager, SGDBManager)
|
||||
|
||||
def manager_logic(self, game: Game, _additional_data: dict) -> None:
|
||||
# TODO decouple a game from its widget
|
||||
|
||||
Reference in New Issue
Block a user