yapf
This commit is contained in:
parent
bdab367285
commit
8ded8f573d
2 changed files with 5 additions and 4 deletions
|
@ -2,8 +2,9 @@ from datetime import datetime, timedelta
|
|||
|
||||
from data import model
|
||||
from data.database import BlobUpload as BlobUploadTable
|
||||
from workers.blobuploadcleanupworker.models_interface import (BlobUpload,
|
||||
BlobUploadCleanupWorkerDataInterface)
|
||||
from workers.blobuploadcleanupworker.models_interface import (
|
||||
BlobUpload, BlobUploadCleanupWorkerDataInterface)
|
||||
|
||||
|
||||
class PreOCIModel(BlobUploadCleanupWorkerDataInterface):
|
||||
def get_stale_blob_upload(self, stale_threshold):
|
||||
|
@ -33,4 +34,5 @@ class PreOCIModel(BlobUploadCleanupWorkerDataInterface):
|
|||
blob_upload = model.blob.get_blob_upload_by_uuid(upload_uuid)
|
||||
return blob_upload is not None
|
||||
|
||||
|
||||
pre_oci_model = PreOCIModel()
|
||||
|
|
Reference in a new issue