From 063af2be093977287bd05c5cbd8c24e012822646 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Thu, 24 Nov 2011 08:30:09 +0100 Subject: Only use the plain text version of articles for the generation of QR code (not the HTML version). --- pyAggr3g470r.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyAggr3g470r.py') diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 44fe3331..2ea63f9e 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -445,8 +445,8 @@ class Root: pass if not os.path.isfile("./var/qrcode/" + article_id + ".png"): # QR Code generation - if len(description) < 4296: - f = qr.QRUrl(url = description) + if len(utils.clear_string(description)) < 4296: + f = qr.QRUrl(url = utils.clear_string(description)) else: f = qr.QRUrl(url = article.article_link) f.make() -- cgit