detect no subscriptions

This commit is contained in:
rootzoll
2020-05-26 17:43:59 +02:00
parent f93659089e
commit fe39635fa5

View File

@@ -47,8 +47,6 @@ You have no active or inactive subscriptions at the moment.
''',title="Info") ''',title="Info")
return return
while True:
# load subscriptions and make dialog choices out of it # load subscriptions and make dialog choices out of it
choices = [] choices = []
lookup = {} lookup = {}
@@ -75,7 +73,7 @@ You have no active or inactive subscriptions at the moment.
"You have the following subscriptions (active & inactive). Select for details:", "You have the following subscriptions (active & inactive). Select for details:",
choices=choices, title="My Subscriptions") choices=choices, title="My Subscriptions")
# if user cancels # if user chosses CANCEL
if code != d.OK: return if code != d.OK: return
# get data of selected subscrption # get data of selected subscrption
@@ -127,6 +125,9 @@ The following additional information is available:
# TODO: make call to blitz.ip2tor to cancel/delete subscription # TODO: make call to blitz.ip2tor to cancel/delete subscription
pass pass
# loop until no more subscriptions or user chooses CANCEL on subscription list
mySubscriptions()
####### SSH MENU ######### ####### SSH MENU #########
mySubscriptions() mySubscriptions()