Commit 0373517a authored by Jean-Pierre Thomasset's avatar Jean-Pierre Thomasset

2939 - Add dao function to get agent group

parent 63909d1a
......@@ -17,6 +17,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from xivo_dao.alchemy.agentfeatures import AgentFeatures
from xivo_dao.alchemy.agentgroup import AgentGroup
from xivo_dao.alchemy.queuemember import QueueMember
from xivo_dao.alchemy.queuefeatures import QueueFeatures
from xivo_dao.helpers.db_manager import daosession
......@@ -74,3 +75,9 @@ def get_membership(agent_id):
rows = query.all()
return [to_membership_dict(item) for item in rows]
def get_group_by_id(group_id):
query = (Session.query(AgentGroup)
.filter(id=group_id))
return query.first()
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