Exemplo n.º 1
0
func (c Yearly) PeerGetOutDispositionByYearAndPeer(year int, peer string, tmp int) revel.Result {
	revel.TRACE.Printf("[Yearly Peer] Get outcalls disposition by year [%d] and peer [%s].\r\n", year, peer)
	results := mongo.GetPeerDispositionByYear(year, "out", peer, c.MongoDatabase)
	return c.RenderJson(results)
}
Exemplo n.º 2
0
func (c Yearly) PeerGetInDispositionByYear(year int, tmp int) revel.Result {
	revel.TRACE.Printf("[Yearly Peer] Get incalls disposition by year [%d].\r\n", year)
	results := mongo.GetPeerDispositionByYear(year, "in", "", c.MongoDatabase)
	return c.RenderJson(results)
}