Skip to content

Commit

Permalink
Remove version and lastModified from output
Browse files Browse the repository at this point in the history
  • Loading branch information
n0str committed Jun 30, 2024
1 parent 1683dc5 commit 3476e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href='{FigmaAPI.FIGMA_WEB}/{file_key}'>{event['file_name']} library</a>")
lines.append(f"🛍 {event['triggered_by']['handle']} published <a href='{FigmaAPI.FIGMA_WEB}/{file_key}'>{event['file_name']}</a>")

if event['description'] != "":
lines.append(f"\n<blockquote>{event['description']}</blockquote>")
Expand Down Expand Up @@ -66,7 +66,7 @@ def insert_link_to_path(path):
changes.append(f"- Set <a href='{FigmaAPI.FIGMA_WEB}/{file_key}?node-id={component['value'][0]}'>{component['value'][1]}</a> on path <i>{component['path']}</i>")
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 <i>{component['path']}</i> from {component['old']} to {component['new']}")

Expand Down

0 comments on commit 3476e22

Please sign in to comment.