Changeset 73

Show
Ignore:
Timestamp:
06/28/08 13:35:16 (2 months ago)
Author:
nobu
Message:

pluggable-contents:

  • バグ修正。
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/pluggable-contents/plugins/views.py

    r72 r73  
    106106        FROM %(blog_entry)s e 
    107107        WHERE 
     108            e.%(is_published)s = True 
     109        AND 
    108110            e.%(is_active)s = True 
    109111        GROUP BY 
     
    114116            'published_at': qn('published_at'), 
    115117            'blog_entry': qn('blog_entry'), 
     118            'is_published': qn('is_published'), 
    116119            'is_active': qn('is_active'), 
    117120        } 
     
    119122        obj_list = [] 
    120123        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): 
    123125                continue 
    124126            obj_list.append(ArchiveLink(date=datetime.date(year, month, 1),