mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Remove snapshot requirement for thumbnail event query (#4039)
This commit is contained in:
		
							parent
							
								
									68cdd9b94c
								
							
						
					
					
						commit
						66dc8c772b
					
				@ -358,7 +358,6 @@ def label_thumbnail(camera_name, label):
 | 
			
		||||
        event_query = (
 | 
			
		||||
            Event.select()
 | 
			
		||||
            .where(Event.camera == camera_name)
 | 
			
		||||
            .where(Event.has_snapshot == True)
 | 
			
		||||
            .order_by(Event.start_time.desc())
 | 
			
		||||
        )
 | 
			
		||||
    else:
 | 
			
		||||
@ -366,7 +365,6 @@ def label_thumbnail(camera_name, label):
 | 
			
		||||
            Event.select()
 | 
			
		||||
            .where(Event.camera == camera_name)
 | 
			
		||||
            .where(Event.label == label)
 | 
			
		||||
            .where(Event.has_snapshot == True)
 | 
			
		||||
            .order_by(Event.start_time.desc())
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user