예제 #1
0
def donateData(request):
    """
    返回捐赠信息
    捐赠笔数
    捐赠总金额
    """
    data = [Donate.totalDonateNums(), int(Donate.totalDonateMoney())]
    return JsonResponse({"data": data})
예제 #2
0
def donateData(request):
    '''
    返回捐赠信息
    捐赠笔数
    捐赠总金额
    '''
    data = [Donate.totalDonateNums(), int(Donate.totalDonateMoney())]
    return JsonResponse({'data': data})
예제 #3
0
def donateData(request):
    '''
    返回捐赠信息
    捐赠笔数
    捐赠总金额
    '''
    data = [Donate.totalDonateNums(), int(Donate.totalDonateMoney())]
    return JsonResponse({'data': data})