2018-07-10 02:26:51 +00:00
|
|
|
from dashboard.models import Spi, Finance
|
2018-07-09 03:52:42 +00:00
|
|
|
from django.shortcuts import render
|
|
|
|
|
2018-07-09 06:24:40 +00:00
|
|
|
|
|
|
|
def ghyc(request):
|
2018-07-09 07:28:02 +00:00
|
|
|
month = request.GET.get('month', '1')
|
|
|
|
months = range(1, 13)
|
|
|
|
year = request.GET.get('year', '1979')
|
|
|
|
years = range(1979, 2018)
|
|
|
|
spis = Spi.objects.filter( month=month)
|
|
|
|
return render(request,'predict/ghyc.html',{'month':month,'months':months,'spis':spis,'year':year,'years':years})
|
2018-07-10 02:26:51 +00:00
|
|
|
|
|
|
|
|