From 0edfe757fef5faf31aa00a7df7477ef261b5b1e6 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Mon, 28 May 2012 10:30:38 +0200 Subject: Only use the URL of article for the QRCode. --- source/pyAggr3g470r.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index 17cfb549..9ce14db5 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -464,12 +464,10 @@ class Root: if not os.path.isfile("./var/qrcode/" + article_id + ".png"): # QR Code generation try: - if len(utils.clear_string(description)) > 4296: - raise Exception() - f = qr.QRUrl(url = utils.clear_string(description)) + f = qr.QRUrl(url = article["article_link"]) f.make() except: - f = qr.QRUrl(url = article["article_link"]) + f = qr.QRUrl(url = "URL too long.") f.make() f.save("./var/qrcode/"+article_id+".png") -- cgit