Update gui/presenters/interpret_key_results.py
Typo Fix
This commit is contained in:
parent
66dacf1b3f
commit
22c2652c48
1 changed files with 6 additions and 6 deletions
|
|
@ -18,18 +18,18 @@ def interpret_key_results(result: dict) -> str:
|
|||
|
||||
# comparison:
|
||||
if comparison == "same":
|
||||
first_sentance = "The key you had locally matched what the server had also."
|
||||
first_sentence = "The key you had locally matched what the server had also."
|
||||
elif comparison == "different":
|
||||
first_sentance = "Your local key was different than the server's key."
|
||||
first_sentence = "Your local key was different than the server's key."
|
||||
else:
|
||||
first_sentance = "There was an error with the comparison."
|
||||
first_sentence = "There was an error with the comparison."
|
||||
|
||||
# validity:
|
||||
if valid:
|
||||
second_sentance = "The signature now matches with the new key."
|
||||
second_sentence = "The signature now matches with the new key."
|
||||
else:
|
||||
second_sentance = "But the signature still does not match, even with the new key. If you prepare tickets anyway, they might not verify when used."
|
||||
second_sentence = "But the signature still does not match, even with the new key. If you prepare tickets anyway, they might not verify when used."
|
||||
|
||||
# final return
|
||||
final_msg = first_sentance + " " + second_sentance
|
||||
final_msg = first_sentence + " " + second_sentence
|
||||
return final_msg
|
||||
Loading…
Reference in a new issue