Skip to content

Commit

Permalink
fix print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Aug 29, 2024
1 parent ff91b39 commit 42207ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions catalog_reader/scripts/apps_hashes.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ def update_catalog_hashes(catalog_path: str, bump_type: str | None = None) -> No
with open(str(app_metadata_file), 'w') as f:
f.write(yaml.safe_dump(app_config))

print(
f'[\033[92mOK\x1B[0m]\tUpdated library hash for {app_dir.name!r} in {train_dir.name}'
f' and bumped version from {old_version!r} to {app_config["version"]!r}' if bump_type else ''
)
message = f'[\033[92mOK\x1B[0m]\tUpdated library hash for {app_dir.name!r} in {train_dir.name}'
if bump_type:
message += f' and bumped version from {old_version!r} to {app_config["version"]!r}'
print(message)


def main():
Expand Down

0 comments on commit 42207ae

Please sign in to comment.