def _count_table_with_cond(table, cond_dict): return postgres.exec_count_request(table, **cond_dict)
def get_event_count_queue(event, queuename): cond = { '"queuename"': '\'%s\'' % queuename, '"event"': '\'%s\'' % event } return postgres.exec_count_request('queue_log', **cond)
def get_event_count_agent(event, agent_number): cond = { '"agent"': '\'%s\'' % _build_agent_db_tag_from_number(agent_number), '"event"': '\'%s\'' % event } return postgres.exec_count_request('queue_log', **cond)
def _count_table_with_cond(table, cond_dict): return postgres.exec_count_request(table, **cond_dict)