Move the total image count stat back to the prom stat worker
This commit is contained in:
		
							parent
							
								
									deb2b1b003
								
							
						
					
					
						commit
						add6b654ae
					
				
					 3 changed files with 5 additions and 13 deletions
				
			
		|  | @ -500,14 +500,6 @@ def get_images_eligible_for_scan(clair_version): | |||
|   return get_image_with_storage_and_parent_base().where(Image.security_indexed_engine < clair_version) | ||||
| 
 | ||||
| 
 | ||||
| def get_count_of_images_eligible_for_scan(clair_version): | ||||
|   """ Returns a query that gives all images eligible for a clair scan """ | ||||
|   # TODO(jzelinskie): Get this value from the slab allocator rather than querying the db | ||||
|   # This was the previous implementation: | ||||
|   # return get_images_eligible_for_scan(clair_version).count() | ||||
|   return 0 | ||||
| 
 | ||||
| 
 | ||||
| def get_image_with_storage_and_parent_base(): | ||||
|   Parent = Image.alias() | ||||
|   ParentImageStorage = ImageStorage.alias() | ||||
|  |  | |||
		Reference in a new issue