Changeset 452


Ignore:
Timestamp:
07/14/06 16:49:33 (13 years ago)
Author:
tarmo
Message:

Fixes #518, spent 6m.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SectionFolder.py

    r441 r452  
    135135    def getSamples(self, search_results): 
    136136        """ Pick three random objects from search results that have non-default images to display in folders front pages. """ 
    137         pic_results = [x for x in search_results if x.getHasCoverImage and x.review_state=='public'] 
     137        pic_results = [x for x in search_results if x.getHasCoverImage and x.review_state=='public' and x.Title] 
    138138        n=min(3,len(pic_results)) 
    139139        samples=sample(pic_results,n) 
Note: See TracChangeset for help on using the changeset viewer.