Skip to content

Commit

Permalink
Enleve doublon en marque-pages si update
Browse files Browse the repository at this point in the history
  • Loading branch information
helene authored and helene committed Nov 20, 2024
1 parent 4de8647 commit e657810
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion create_usernames_spreadsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,7 @@
# slack.post_to_channel(channel_name, message, post_time)

# add a bookmark
slack.add_bookmark_to_channel(channel_name, "Username spreadhseet", sheet_url)
if args.update:
slack.update_channel_bookmarks(channel_name, slack.list_channel_bookmarks(channel_name))
else:
slack.add_bookmark_to_channel(channel_name, "Username spreadhseet", sheet_url)

2 comments on commit e657810

@mboisson
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as-tu testé ? ça ne me semble pas pouvoir marcher, tu ne passes pas sheet_url

@mboisson
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

en fait, la bonne façon d'éviter les doublons serait de ne pas faire une nouvelle feuille, mais plutôt d'éditer la même (et donc de stocker l'ID dans le calendrier de travail)

Please sign in to comment.