From f5d2e82103744a8cb0c64d1040e7dfbb17a4b9d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Fontaine?= Date: Tue, 5 Nov 2019 21:58:09 +0100 Subject: [PATCH] Fix : unquote url-like Fact value --- getmyancestors.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/getmyancestors.py b/getmyancestors.py index ff9b5a3..8bbc3cd 100755 --- a/getmyancestors.py +++ b/getmyancestors.py @@ -26,6 +26,7 @@ from __future__ import print_function import re import sys import time +from urllib.parse import unquote import getpass import asyncio import argparse @@ -369,7 +370,7 @@ class Fact: if self.type in FACT_EVEN: self.type = tree.fs._(FACT_EVEN[self.type]) elif self.type[:6] == "data:,": - self.type = self.type[6:] + self.type = unquote(self.type[6:]) elif self.type not in FACT_TAGS: self.type = None if "date" in data: -- 2.52.0