Commit c9e062b2 authored by Cedric Abunar's avatar Cedric Abunar

[evo]new method to delete queue_log entries

parent 8e391d64
......@@ -88,6 +88,12 @@ def delete_event_by_queue_between(event, qname, start, end):
_session().commit()
def delete_event_between(start, end):
_session().query(QueueLog).filter(
and_(between(QueueLog.time, start, end))).delete(synchronize_session=False)
_session().commit()
def insert_entry(time, callid, queue, agent, event, d1='', d2='', d3='', d4='', d5=''):
entry = QueueLog(
time=time,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment