[papert commit] r133 - stupid bug because of extra indentation

7 views
Skip to first unread message

codesite...@google.com

unread,
Mar 26, 2009, 11:32:13 AM3/26/09
to paper...@googlegroups.com
Author: thomas.figg
Date: Thu Mar 26 08:31:38 2009
New Revision: 133

Modified:
trunk/index.py

Log:
stupid bug because of extra indentation

Modified: trunk/index.py
==============================================================================
--- trunk/index.py (original)
+++ trunk/index.py Thu Mar 26 08:31:38 2009
@@ -86,8 +86,9 @@
recent = [program.hash for program in recent]
memcache.set("recent_scripts", recent)
memcache.set("last_script_date", last_date)
- values['recent'] = recent
- values['last_date'] = last_date
+ if recent and last_date:
+ values['recent'] = recent
+ values['last_date'] = last_date

page =
os.path.join(os.path.dirname(__file__), 'index.html.tmpl')
self.response.out.write(template.render(page, values))

Reply all
Reply to author
Forward
0 new messages