Changeset 72
- Timestamp:
- 06/28/08 13:19:22 (2 months ago)
- Files:
-
- branches/pluggable-contents/plugins/views.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/pluggable-contents/plugins/views.py
r70 r72 102 102 SELECT 103 103 COUNT(e.%(id)s) as cnt, 104 EXTRACT(YEAR FROM e.%( created_at)s) as year,105 EXTRACT(MONTH FROM e.%( created_at)s) as month104 EXTRACT(YEAR FROM e.%(published_at)s) as year, 105 EXTRACT(MONTH FROM e.%(published_at)s) as month 106 106 FROM %(blog_entry)s e 107 107 WHERE … … 112 112 """ % { 113 113 'id': qn('id'), 114 ' created_at': qn('created_at'),114 'published_at': qn('published_at'), 115 115 'blog_entry': qn('blog_entry'), 116 116 'is_active': qn('is_active'), … … 119 119 obj_list = [] 120 120 for count, year, month in cursor.fetchall(): 121 print count, year, month 122 if year is None or month is None: 123 continue 121 124 obj_list.append(ArchiveLink(date=datetime.date(year, month, 1), 122 125 count=count)) … … 264 267 'id': u'comment-list', 265 268 'obj_list': obj_list, 266 'title': _(u'Recent Comments'),269 'title': _(u'Recent Entries'), 267 270 }) 268 271 t = loader.get_template('blog/_links.html')
