fix/reindex_before_collection #21

Merged
Hazel merged 32 commits from fix/reindex_before_collection into experimental 2024-05-06 17:36:28 +00:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 415210522f - Show all commits

View File

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

View File

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