My current suggestion based on Michal Hruby's requirements would be a method called
def get_events_count(timerange, event_templates): ... return dict
where dict = {event_template_1: count1, event_template_2: count2, ... }
My current suggestion based on Michal Hruby's requirements would be a method called
def get_events_ count(timerange , event_templates):
...
return dict
where dict = {event_template_1: count1,
event_template_ 2: count2,
...
}