Update gui/presenters/interpret_key_results.py

Typo Fix
This commit is contained in:
SimplifiedPrivacy 2026-05-16 16:50:31 +00:00
parent 66dacf1b3f
commit 22c2652c48

View file

@ -18,18 +18,18 @@ def interpret_key_results(result: dict) -> str:
# comparison: # comparison:
if comparison == "same": 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": 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: else:
first_sentance = "There was an error with the comparison." first_sentence = "There was an error with the comparison."
# validity: # validity:
if valid: if valid:
second_sentance = "The signature now matches with the new key." second_sentence = "The signature now matches with the new key."
else: 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 return
final_msg = first_sentance + " " + second_sentance final_msg = first_sentence + " " + second_sentence
return final_msg return final_msg