예제 #1
0
    def get(self, request):

        cs = ClientStats()
        clients = cs.get_entries()

        return self.render_to_response({
            "clients": clients.most_common(),
            "max_users": cs.max_users,
            "total": cs.total_users,
        })
예제 #2
0
파일: views.py 프로젝트: sandebert/mygpo
    def get(self, request):

        cs = ClientStats()
        clients = cs.get_entries()

        return self.render_to_response({
                'clients': clients.most_common(),
                'max_users': cs.max_users,
                'total': cs.total_users,
            })
예제 #3
0
파일: views.py 프로젝트: 4johndoe/mygpo
    def get(self, request):

        cs = ClientStats()
        clients = cs.get_entries()

        return self.render_to_response({
                'clients': clients.most_common(),
                'max_users': cs.max_users,
                'total': cs.total_users,
            })
예제 #4
0
    def get(self, request):

        cs = ClientStats()
        clients = cs.get_entries()

        return JsonResponse(map(self.to_dict, clients.most_common()))
예제 #5
0
파일: views.py 프로젝트: gpodder/mygpo
    def get(self, request):

        cs = ClientStats()
        clients = cs.get_entries()

        return JsonResponse(map(self.to_dict, clients.most_common()))