Linter fixes
This commit is contained in:
parent
add6b654ae
commit
27f5f14f90
2 changed files with 8 additions and 6 deletions
|
@ -1,16 +1,16 @@
|
|||
import logging
|
||||
import dateutil.parser
|
||||
import hashlib
|
||||
import json
|
||||
import dateutil.parser
|
||||
|
||||
from peewee import JOIN_LEFT_OUTER, IntegrityError, fn
|
||||
from datetime import datetime
|
||||
from peewee import JOIN_LEFT_OUTER, IntegrityError, fn
|
||||
|
||||
from data.model import (DataModelException, db_transaction, _basequery, storage,
|
||||
InvalidImageException, config)
|
||||
InvalidImageException)
|
||||
from data.database import (Image, Repository, ImageStoragePlacement, Namespace, ImageStorage,
|
||||
ImageStorageLocation, RepositoryPermission, DerivedStorageForImage,
|
||||
ImageStorageTransformation, db_random_func)
|
||||
ImageStorageTransformation)
|
||||
|
||||
from util.canonicaljson import canonicalize
|
||||
|
||||
|
@ -497,7 +497,8 @@ def get_image_id():
|
|||
|
||||
def get_images_eligible_for_scan(clair_version):
|
||||
""" Returns a query that gives all images eligible for a clair scan """
|
||||
return get_image_with_storage_and_parent_base().where(Image.security_indexed_engine < clair_version)
|
||||
return (get_image_with_storage_and_parent_base()
|
||||
.where(Image.security_indexed_engine < clair_version))
|
||||
|
||||
|
||||
def get_image_with_storage_and_parent_base():
|
||||
|
|
|
@ -19,7 +19,8 @@ INDEXING_INTERVAL = 30
|
|||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
unscanned_images_gauge = prometheus.create_gauge('unscanned_images', 'Number of images that clair needs to scan.')
|
||||
unscanned_images_gauge = prometheus.create_gauge('unscanned_images',
|
||||
'Number of images that clair needs to scan.')
|
||||
images_gauge = prometheus.create_gauge('all_images', 'Total number of images that clair can scan.')
|
||||
|
||||
|
||||
|
|
Reference in a new issue