fix str.format for python2.6
authorTero Marttila <terom@fixme.fi>
Mon, 02 Sep 2013 03:53:49 +0300
changeset 75 839410915625
parent 74 b8f1ae4247ad
child 76 04b5035f5775
fix str.format for python2.6
qrurls/views.py
--- a/qrurls/views.py	Mon Sep 02 03:50:50 2013 +0300
+++ b/qrurls/views.py	Mon Sep 02 03:53:49 2013 +0300
@@ -56,7 +56,7 @@
         Primary frontend for redirecting based on current time.
     """
     
-    key = 'qrurls/urlfeed/{}/url'.format(opts)
+    key = 'qrurls/urlfeed/{shorturl}/url'.format(shorturl=opts) # format as dict
     data = cache.get(key)
     
     if data :