More API improvements
This commit is contained in:
parent
15f47b63f4
commit
465da4ef0f
|
@ -117,12 +117,19 @@ div.item > div.links > div:nth-child(2) > a {
|
||||||
if acc_id == '*':
|
if acc_id == '*':
|
||||||
if False:
|
if False:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
elif action == 'update':
|
elif action == 'update':
|
||||||
igmirror.update_allaccounts_async()
|
igmirror.update_allaccounts_async()
|
||||||
|
return echo(self, {'status': 'ok', 'message': 'All accounts update asyncronous started!'})
|
||||||
|
|
||||||
elif action == 'login':
|
elif action == 'login':
|
||||||
igmirror.pixelfed_loginall_async()
|
igmirror.pixelfed_loginall_async()
|
||||||
|
return echo(self, {'status': 'ok', 'message': 'All accounts login asyncronous started!'})
|
||||||
|
|
||||||
elif action == 'logout':
|
elif action == 'logout':
|
||||||
igmirror.pixelfed_logoutall_async()
|
igmirror.pixelfed_logoutall_async()
|
||||||
|
return echo(self, {'status': 'ok', 'message': 'All accounts logout asyncronous started!'})
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# make sure account name contains only safe characters
|
# make sure account name contains only safe characters
|
||||||
# i think IG usernames can only have this characters:
|
# i think IG usernames can only have this characters:
|
||||||
|
|
Loading…
Reference in New Issue