comparison pylons_app/controllers/summary.py @ 510:9bedaa073c23

fixed lockdecrator to return executed function data removed print
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 28 Sep 2010 20:07:55 +0000
parents fdb78a140ae4
children
comparison
equal deleted inserted replaced
509:b50e79b4257a 510:9bedaa073c23
93 c.trending_languages = json.dumps(OrderedDict( 93 c.trending_languages = json.dumps(OrderedDict(
94 sorted(lang_stats.items(), reverse=True, 94 sorted(lang_stats.items(), reverse=True,
95 key=lambda k: k[1])[:2] 95 key=lambda k: k[1])[:2]
96 ) 96 )
97 ) 97 )
98 print c.trending_languages
99 else: 98 else:
100 c.commit_data = json.dumps({}) 99 c.commit_data = json.dumps({})
101 c.overview_data = json.dumps([[ts_min_y, 0], [ts_max_y, 0] ]) 100 c.overview_data = json.dumps([[ts_min_y, 0], [ts_max_y, 0] ])
102 c.trending_languages = json.dumps({}) 101 c.trending_languages = json.dumps({})
103 102