fix bork with creating new user
This commit is contained in:
parent
5104864dd5
commit
b600c91040
@ -341,8 +341,6 @@ def exportLogBook() :
|
|||||||
|
|
||||||
def checkConfig(S = None) :
|
def checkConfig(S = None) :
|
||||||
global db
|
global db
|
||||||
fullname = db["users"][handle]["fullname"]
|
|
||||||
callsign = db["users"][handle]["callsign"]
|
|
||||||
if S :
|
if S :
|
||||||
if S.upper() == "RESET" :
|
if S.upper() == "RESET" :
|
||||||
if handle in db["users"] :
|
if handle in db["users"] :
|
||||||
@ -357,7 +355,7 @@ def checkConfig(S = None) :
|
|||||||
gotoxy(1,3)
|
gotoxy(1,3)
|
||||||
write("What is your Amateur Radio call sign: ")
|
write("What is your Amateur Radio call sign: ")
|
||||||
gotoxy(39,3)
|
gotoxy(39,3)
|
||||||
callsign = getstr(2,40,45,callsign)
|
callsign = getstr(2,40,45,"")
|
||||||
if callsign :
|
if callsign :
|
||||||
writeln("You chose |10"+callsign+"|07, is this ok? (y/n)")
|
writeln("You chose |10"+callsign+"|07, is this ok? (y/n)")
|
||||||
ch = onekey(chr(13) + 'YN', False)
|
ch = onekey(chr(13) + 'YN', False)
|
||||||
@ -375,7 +373,7 @@ def checkConfig(S = None) :
|
|||||||
write("What is your Full Name: ")
|
write("What is your Full Name: ")
|
||||||
gotoxy(25,6)
|
gotoxy(25,6)
|
||||||
# getstr(mode,width_vis,length_var,default)
|
# getstr(mode,width_vis,length_var,default)
|
||||||
fullname = getstr(1,40,45,fullname)
|
fullname = getstr(1,40,45,"")
|
||||||
if fullname :
|
if fullname :
|
||||||
writeln("You chose |10"+fullname+"|07, is this ok? (y/n)")
|
writeln("You chose |10"+fullname+"|07, is this ok? (y/n)")
|
||||||
ch = onekey(chr(13) + 'YN', False)
|
ch = onekey(chr(13) + 'YN', False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user