File tree 1 file changed +12
-11
lines changed 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change 23
23
from functools import partial
24
24
from pprint import pformat
25
25
26
- from dateutil .parser import parse as parse_date
27
-
28
- from aiohttp_client_cache import CachedSession , SQLiteBackend
29
26
import aiohttp
30
27
import pandas as pd
31
28
import tqdm
32
29
import tqdm .asyncio
33
30
import yaml
31
+ from aiohttp_client_cache import CachedSession , SQLiteBackend
32
+ from dateutil .parser import parse as parse_date
34
33
35
34
HERE = os .path .dirname (__file__ )
36
35
@@ -126,7 +125,6 @@ async def list_images_catalog(session, registry_host):
126
125
url = None
127
126
128
127
129
-
130
128
async def get_manifest (session , image ):
131
129
"""List the tags for an image
132
130
@@ -342,13 +340,16 @@ def should_delete_tag(image, info):
342
340
return False
343
341
344
342
def save_stats ():
345
- df = pd .DataFrame (rows , columns = [
346
- "image" ,
347
- "digest" ,
348
- "tags" ,
349
- "size" ,
350
- "date" ,
351
- ])
343
+ df = pd .DataFrame (
344
+ rows ,
345
+ columns = [
346
+ "image" ,
347
+ "digest" ,
348
+ "tags" ,
349
+ "size" ,
350
+ "date" ,
351
+ ],
352
+ )
352
353
today = datetime .today ()
353
354
fname = f"registry-{ release } -{ today .strftime ('%Y-%m-%d' )} .pkl"
354
355
df .to_pickle (fname )
You can’t perform that action at this time.
0 commit comments