Changeset 73
- Timestamp:
- 06/28/08 13:35:16 (2 months ago)
- Files:
-
- branches/pluggable-contents/plugins/views.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/pluggable-contents/plugins/views.py
r72 r73 106 106 FROM %(blog_entry)s e 107 107 WHERE 108 e.%(is_published)s = True 109 AND 108 110 e.%(is_active)s = True 109 111 GROUP BY … … 114 116 'published_at': qn('published_at'), 115 117 'blog_entry': qn('blog_entry'), 118 'is_published': qn('is_published'), 116 119 'is_active': qn('is_active'), 117 120 } … … 119 122 obj_list = [] 120 123 for count, year, month in cursor.fetchall(): 121 print count, year, month 122 if year is None or month is None: 124 if not bool(year) or not bool(month): 123 125 continue 124 126 obj_list.append(ArchiveLink(date=datetime.date(year, month, 1),
