2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-04 22:55:25 +00:00

chore: fix app-cache format

This commit is contained in:
18alantom 2024-05-06 15:48:08 +05:30
parent d3ca36d596
commit fbdae3912a
2 changed files with 4 additions and 4 deletions

View File

@ -421,7 +421,7 @@ class App(AppMeta):
cache_path.rename(hashed_path)
click.secho(
f"Bench app-cache: caching succeeded for {self.app_name} into {hashed_path.as_posix()}",
f"Bench app-cache: caching succeeded for {self.app_name} as {hashed_path.as_posix()}",
fg="green",
)

View File

@ -688,7 +688,7 @@ def cache_list() -> None:
created = datetime.fromtimestamp(stat.st_ctime)
accessed = datetime.fromtimestamp(stat.st_atime)
app = item.name.split("-")[0]
app = item.name.split(".")[0]
tot_items += 1
tot_size += stat.st_size
compressed = item.suffix == ".tgz"
@ -696,7 +696,7 @@ def cache_list() -> None:
if not printed_header:
click.echo(
f"{'APP':15} "
f"{'FILE':25} "
f"{'FILE':90} "
f"{'SIZE':>13} "
f"{'COMPRESSED'} "
f"{'CREATED':19} "
@ -706,7 +706,7 @@ def cache_list() -> None:
click.echo(
f"{app:15} "
f"{item.name:25} "
f"{item.name:90} "
f"{size_mb:10.3f} MB "
f"{str(compressed):10} "
f"{created:%Y-%m-%d %H:%M:%S} "