close notification after press button; visible success of update
This commit is contained in:
parent
e5983ab2b7
commit
a5359b6201
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ async def git_notifications_update():
|
||||||
logger.info('updates not found, nothing to do')
|
logger.info('updates not found, nothing to do')
|
||||||
else:
|
else:
|
||||||
os.system(
|
os.system(
|
||||||
f"termux-notification --title 'ub4tg: update avalaible!' --content 'For apply tap button Get update and restart bot\nChanges:\n{commits}' --button1 'Get update' --button1-action 'cd {cwd}; git pull'")
|
f"termux-notification -i ub4tgupd --title 'ub4tg: update avalaible!' --content 'For apply tap button Get update and restart bot\nChanges:\n{commits}' --button1 'Get update' --button1-action 'termux-notification-remove ub4tgupd; cd {cwd}; git pull && termux-toast 'ub4tg updated, now restart it for apply update' || termux-toast 'ub4tg update failed'")
|
||||||
else:
|
else:
|
||||||
os.system(
|
os.system(
|
||||||
"termux-toast '[ub4tg]: failed fetching update, maybe connection error, check console log for more info'")
|
"termux-toast '[ub4tg]: failed fetching update, maybe connection error, check console log for more info'")
|
||||||
|
|
Loading…
Reference in a new issue