fix/reindex_before_collection #21
| @@ -6,8 +6,8 @@ logging.getLogger().setLevel(logging.DEBUG) | ||||
|  | ||||
| if __name__ == "__main__": | ||||
|     commands = [ | ||||
|         "s: #a Crystal F", | ||||
|         "d: 20" | ||||
|         "s: #a Psychonaut 4", | ||||
|         "d: 0" | ||||
|     ] | ||||
|  | ||||
|      | ||||
|   | ||||
| @@ -122,6 +122,9 @@ class SourceCollection: | ||||
|             yield from self._page_to_source_list[page] | ||||
|  | ||||
|     def append(self, source: Source): | ||||
|         if source is None: | ||||
|             return | ||||
|  | ||||
|         existing_source = None | ||||
|         for key in source.indexing_values: | ||||
|             if key in self._indexed_sources: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user