diff --git a/server.py b/server.py index caee59b..7e17124 100644 --- a/server.py +++ b/server.py @@ -117,12 +117,19 @@ div.item > div.links > div:nth-child(2) > a { if acc_id == '*': if False: pass + elif action == 'update': igmirror.update_allaccounts_async() + return echo(self, {'status': 'ok', 'message': 'All accounts update asyncronous started!'}) + elif action == 'login': igmirror.pixelfed_loginall_async() + return echo(self, {'status': 'ok', 'message': 'All accounts login asyncronous started!'}) + elif action == 'logout': igmirror.pixelfed_logoutall_async() + return echo(self, {'status': 'ok', 'message': 'All accounts logout asyncronous started!'}) + else: # make sure account name contains only safe characters # i think IG usernames can only have this characters: