last QSO table will not be shown anymore if there are no previous QSOs
This commit is contained in:
parent
0cc4406664
commit
1b45024d4b
|
@ -151,7 +151,6 @@ def getQSOsForCallsign(callsign):
|
|||
v = re.sub('^.*:',"",i, flags=re.DOTALL)
|
||||
k = re.sub(':.*$',"",i, flags=re.DOTALL)
|
||||
result[-1][k] = v
|
||||
|
||||
return result
|
||||
|
||||
|
||||
|
@ -335,9 +334,9 @@ if __name__ == '__main__':
|
|||
print(tab)
|
||||
print(style.RESET)
|
||||
|
||||
print ('%s%sPrevious QSOs with %s%s' % (style.UNDERLINED, hlcol, call, style.RESET))
|
||||
|
||||
result = getQSOsForCallsign(call)
|
||||
if result[0]:
|
||||
print ('%s%sPrevious QSOs with %s%s' % (style.UNDERLINED, hlcol, call, style.RESET))
|
||||
tab = getQSOTable(result)
|
||||
print(tablecol)
|
||||
print(tab)
|
||||
|
@ -383,5 +382,5 @@ if __name__ == '__main__':
|
|||
keeponlogging = False
|
||||
|
||||
print(inputcol)
|
||||
print("Bye, bye!")
|
||||
print("73!")
|
||||
print(style.RESET)
|
||||
|
|
Loading…
Reference in New Issue