예제 #1
0
파일: display.py 프로젝트: vintas/indico
 def _process(self):
     event_counts = {
         c.id: {
             'value': c.deep_events_count,
             'pretty': format_number(c.deep_events_count)
         }
         for c in self.category.children
     }
     return jsonify_data(flash=False, event_counts=event_counts)
예제 #2
0
파일: display.py 프로젝트: OmeGak/indico
 def _process(self):
     event_counts = {c.id: {'value': c.deep_events_count, 'pretty': format_number(c.deep_events_count)}
                     for c in self.category.children}
     return jsonify_data(flash=False, event_counts=event_counts)