mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Don't overwrite event while cleaning up expired cameras (#8320)
This commit is contained in:
		
							parent
							
								
									1a9e00ee49
								
							
						
					
					
						commit
						cf2b56613f
					
				@ -98,8 +98,8 @@ class EventCleanup(threading.Thread):
 | 
				
			|||||||
                .iterator()
 | 
					                .iterator()
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
            # delete the media from disk
 | 
					            # delete the media from disk
 | 
				
			||||||
            for event in expired_events:
 | 
					            for expired in expired_events:
 | 
				
			||||||
                media_name = f"{event.camera}-{event.id}"
 | 
					                media_name = f"{expired.camera}-{expired.id}"
 | 
				
			||||||
                media_path = Path(
 | 
					                media_path = Path(
 | 
				
			||||||
                    f"{os.path.join(CLIPS_DIR, media_name)}.{file_extension}"
 | 
					                    f"{os.path.join(CLIPS_DIR, media_name)}.{file_extension}"
 | 
				
			||||||
                )
 | 
					                )
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user