newmediamonitoring/graph/views.py

16 lines
380 B
Python
Raw Normal View History

2020-09-17 08:10:13 +00:00
import datetime
from django.shortcuts import render
# Create your views here.
from dashboard.models import Weixin, Weixin_data
2020-09-17 08:10:13 +00:00
def index_data_count_chart(request):
year = request.GET.get('year')
month_form = request.GET.get('month_form')
month_to = request.GET.get('month_to')
weixin = Weixin_data.objects.filter(year=year,date__range=(month_form,month_to))
2020-09-17 08:10:13 +00:00