mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-04 03:27:00 -05:00 
			
		
		
		
	Content server: Fix editing metadata that affects multiple books causing all the metadata for all the books to become the same.
Fixes #1812781 [400 bad request from server API](https://bugs.launchpad.net/calibre/+bug/1812781)
This commit is contained in:
		
							parent
							
								
									6ff8b2a97a
								
							
						
					
					
						commit
						d8ff047cb9
					
				@ -175,7 +175,7 @@ def cdb_set_fields(ctx, rd, book_id, library_id):
 | 
			
		||||
    ctx.notify_changes(db.backend.library_path, metadata(dirtied))
 | 
			
		||||
    all_ids = dirtied if all_dirtied else (dirtied & loaded_book_ids)
 | 
			
		||||
    all_ids |= {book_id}
 | 
			
		||||
    return {bid: book_as_json(db, book_id) for bid in all_ids}
 | 
			
		||||
    return {bid: book_as_json(db, bid) for bid in all_ids}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@endpoint('/cdb/copy-to-library/{target_library_id}/{library_id=None}', needs_db_write=True,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user