From b37bfd289893efa7f5a50500ef2c8684b8be378c Mon Sep 17 00:00:00 2001 From: okalintu Date: Thu, 1 Sep 2016 18:40:45 +0300 Subject: [PATCH] fixed one missing slash --- infoscreen/management/commands/importabb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infoscreen/management/commands/importabb.py b/infoscreen/management/commands/importabb.py index 9e0a587..3db581c 100644 --- a/infoscreen/management/commands/importabb.py +++ b/infoscreen/management/commands/importabb.py @@ -42,5 +42,5 @@ def gen_qr(sw_id): img = qrcode.make("http://sahkoinsinoorikilta.fi/news/{}".format(sw_id)) imgname = "abbjobs_{}.png".format(sw_id) imgurl = "{}qr/{}".format(settings.MEDIA_URL,imgname) - img.save("{}qr/{}".format(settings.MEDIA_ROOT,imgname)) + img.save("{}/qr/{}".format(settings.MEDIA_ROOT,imgname)) return imgurl