Changeset 485


Ignore:
Timestamp:
07/19/06 15:24:13 (13 years ago)
Author:
szabolcs
Message:

changed "== 'Material'" to "!= 'Piece'" (#489)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SectionFolder.py

    r484 r485  
    142142    def getSamples(self, search_results): 
    143143        """ Pick three random objects from search results that have non-default images to display in folders front pages. """ 
    144         pic_results = [x for x in search_results if x.meta_type == 'Material' and x.getHasCoverImage and x.review_state=='public' and x.Title] 
     144        pic_results = [x for x in search_results if x.meta_type != 'Piece' and x.getHasCoverImage and x.review_state=='public' and x.Title] 
    145145        n=min(3,len(pic_results)) 
    146146        samples=sample(pic_results,n) 
Note: See TracChangeset for help on using the changeset viewer.