wikipediagame: fix reference to page title - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit a2429b3978916d5a35c3bbd8581311e7c5fb7647 DIR parent 8aba6ff86af63bd89da6de33723ed2c7c24c1e3c HTML Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Mon, 24 Apr 2023 20:19:58 +0200 wikipediagame: fix reference to page title Signed-off-by: Annna Robert-Houdin <annna@bitreich.org> Diffstat: M wikipediagame | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- DIR diff --git a/wikipediagame b/wikipediagame @@ -144,15 +144,14 @@ def main(args): usage(args[0]) trytext = largs[1] if title.strip().lower() == trytext.strip().lower(): - wpage = w.page(title) - print("Congrats! You have found the right title! :: %s" % (geturi(wpage))) + print("Congrats! You have found the right title! :: %s" % (geturi(w.page(title)))) endgame(hintpath, titlepath) else: print("Sorry, wrong guess. (%.0f%% correct)" % \ (SequenceMatcher(None, title.strip().lower(), trytext.strip().lower()).ratio() * 100)) if cmd == "giveup": - print("The correct title was: %s" % (geturi(wpage))) + print("The correct title was: %s" % (geturi(w.page(title)))) endgame(hintpath, titlepath) return 0