From 3476e2250482164c59f004aff65c534b9eb0a708 Mon Sep 17 00:00:00 2001 From: n0str Date: Sun, 30 Jun 2024 19:08:42 +0300 Subject: [PATCH] Remove version and lastModified from output --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index fb861f1..fa963d3 100644 --- a/main.py +++ b/main.py @@ -32,7 +32,7 @@ def insert_link_to_path(path): components_dict[obj[0]] = obj[1] components_dict[obj[0].replace('-', ':')] = obj[1] - lines.append(f"🛍 {event['triggered_by']['handle']} published {event['file_name']} library") + lines.append(f"🛍 {event['triggered_by']['handle']} published {event['file_name']}") if event['description'] != "": lines.append(f"\n
{event['description']}
") @@ -66,7 +66,7 @@ def insert_link_to_path(path): changes.append(f"- Set {component['value'][1]} on path {component['path']}") for component in history_diff['value_changes']: component["path"] = insert_link_to_path(component["path"]) - if component['path'] == 'thumbnailUrl': + if component['path'] in ['thumbnailUrl', 'lastModified', 'version']: continue changes.append(f"- Change {component['path']} from {component['old']} to {component['new']}")