Skip to content

Commit

Permalink
Update notify.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tabVersion authored May 23, 2020
1 parent b2c1d3d commit 57ff6c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wechat_notify/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def send_request(output, err, process, token, command, start, duration, is_win):
if output is not None:
output = [''] * 3 + output
temp = 'the following are last three lines of stdout:\n' + '\n'.join(output[-3:])
post_str = r'https://sc.ftqq.com/' + token + '.send?' + f'text=[Scuucess] command: ' + ' '.join(command) + f'&desp=start at {time.ctime(int(start))}\ttake time: {duration}\t' + (temp if temp is not None else '')
post_str = r'https://sc.ftqq.com/' + token + '.send?' + f'text=[Success] command: ' + ' '.join(command) + f'&desp=start at {time.ctime(int(start))}\ttake time: {duration}\t' + (temp if temp is not None else '')
requests.post(post_str)
else:
if err is not None:
Expand Down

0 comments on commit 57ff6c1

Please sign in to comment.