def __init__(self, context, quality="medium"): self.handler = get_handler(context) self.image_fetcher = context.services["imagefetcher"].handler self.images = {} self.quality = quality
def __init__(self, game_name, context): super().__init__([]) self.game_name = game_name self.handler = get_handler(context) context.timer_handler.register(seconds(300), self.update, True)