Exemple #1
0
 def fx(by):
     if by in CONTENT_ITEM_EVENT_FACETS:
         if by == 'event_statuses':
             return by, facet.events('statuses', event_ids)
         elif by == 'events':
             return by, len(event_ids)
         return by, facet.events(by, event_ids)
     return by, facet.content_items(by, content_item_ids)
 def fx(by):
     return by, facet.events(by, event_ids)
Exemple #3
0
 def fx(by):
     return by, facet.events(by, event_ids)