mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-23 20:37:09 +01:00
detect no subscriptions
This commit is contained in:
@@ -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()
|
||||||
Reference in New Issue
Block a user