fix: not directly adding all sources
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Hazel 2024-04-29 17:27:12 +02:00
parent 67f475076c
commit 415210522f
2 changed files with 4 additions and 3 deletions

View File

@ -6,8 +6,8 @@ logging.getLogger().setLevel(logging.DEBUG)
if __name__ == "__main__": if __name__ == "__main__":
commands = [ commands = [
"s: #a Crystal F", "s: #a Ghost Bath",
"d: 20", "d: 4",
] ]

View File

@ -128,10 +128,11 @@ class SourceCollection:
if existing_source is not None: if existing_source is not None:
existing_source.__merge__(source) existing_source.__merge__(source)
source = existing_source source = existing_source
else:
self._page_to_source_list[source.page_enum].append(source)
for key in source.indexing_values: for key in source.indexing_values:
self._indexed_sources[key] = source self._indexed_sources[key] = source
self._page_to_source_list[source.page_enum].append(source)
def extend(self, sources: Iterable[Source]): def extend(self, sources: Iterable[Source]):
for source in sources: for source in sources: