Strike global channel id var
This commit is contained in:
parent
029d3bd4aa
commit
5f7e637083
2 changed files with 1 additions and 7 deletions
|
@ -1,3 +1 @@
|
||||||
SLACK_USER_TOKEN = xoxp-
|
SLACK_USER_TOKEN = xoxp-
|
||||||
# Uncomment Channel ID to use for all exports
|
|
||||||
#CHANNEL_ID =
|
|
||||||
|
|
|
@ -458,11 +458,7 @@ if __name__ == "__main__":
|
||||||
data = user_list() if a.json else parse_user_list(user_list())
|
data = user_list() if a.json else parse_user_list(user_list())
|
||||||
save(data, "user_list")
|
save(data, "user_list")
|
||||||
if a.c:
|
if a.c:
|
||||||
ch_id = (
|
ch_id = a.ch
|
||||||
a.ch
|
|
||||||
if a.ch
|
|
||||||
else (os.environ["CHANNEL_ID"] if "CHANNEL_ID" in os.environ else None)
|
|
||||||
)
|
|
||||||
ch_list = channel_list()
|
ch_list = channel_list()
|
||||||
users = user_list()
|
users = user_list()
|
||||||
if ch_id:
|
if ch_id:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue