Strike global channel id var

This commit is contained in:
Seb Seager 2022-01-07 15:03:35 -06:00
parent 029d3bd4aa
commit 5f7e637083
2 changed files with 1 additions and 7 deletions

View file

@ -1,3 +1 @@
SLACK_USER_TOKEN = xoxp-
# Uncomment Channel ID to use for all exports
#CHANNEL_ID =

View file

@ -458,11 +458,7 @@ if __name__ == "__main__":
data = user_list() if a.json else parse_user_list(user_list())
save(data, "user_list")
if a.c:
ch_id = (
a.ch
if a.ch
else (os.environ["CHANNEL_ID"] if "CHANNEL_ID" in os.environ else None)
)
ch_id = a.ch
ch_list = channel_list()
users = user_list()
if ch_id: