simplified SourceIterator

This commit is contained in:
GeoffreyCoulaud
2023-07-20 10:29:39 +02:00
parent 2acdedf033
commit 30152cd10a
8 changed files with 16 additions and 42 deletions

View File

@@ -21,7 +21,6 @@ import json
import logging
from json import JSONDecodeError
from time import time
from typing import Generator
from src import shared
from src.game import Game
@@ -65,7 +64,7 @@ class LegendarySourceIterator(SourceIterator):
game = Game(values)
return (game, data)
def generator_builder(self) -> Generator[SourceIterationResult, None, None]:
def __iter__(self):
# Open library
file = self.source.config_location["installed.json"]
try: