mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-30 23:03:02 +00:00 
			
		
		
		
	Clarify need for WeakSet
This commit is contained in:
		| @@ -413,9 +413,10 @@ class AlchemyEncoder(json.JSONEncoder): | ||||
| class CalibreDB(): | ||||
|     _init = False | ||||
|     engine = None | ||||
|     log = None  # todo: ??? this isn't used, and even then, not sure if it's supposed to be per session or what | ||||
|     config = None | ||||
|     session_factory = None | ||||
|     # This is a WeakSet so that references here don't keep other CalibreDB | ||||
|     # instances alive once they reach the end of their respective scopes | ||||
|     instances = WeakSet() | ||||
|  | ||||
|     def __init__(self): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 blitzmann
					blitzmann