fix bazdid month in env
This commit is contained in:
1 parent
65bb0f48d4
commit
96dd277f6b
4 files changed
+16
-6
No files matched your search
@@ -1,10 +1,14 @@
|
||||
from django.db.models import Count, Sum
|
||||
from django.db.models import Q
|
||||
import os
|
||||
|
||||
from .models import *
|
||||
|
||||
def dashBoxData(request):
|
||||
|
||||
|
||||
bazdid = os.environ.get('bazdid', 9)
|
||||
|
||||
debit = Article.objects.filter().aggregate(Sum('debit'))['debit__sum']
|
||||
credit = Article.objects.filter().aggregate(Sum('credit'))['credit__sum']
|
||||
try:
|
||||
@@ -26,6 +30,7 @@ def dashBoxData(request):
|
||||
'ActionCount': ActionCount,
|
||||
'allUsers': allUsers,
|
||||
'rezayatCount': rezayatCount,
|
||||
'entezarbazdid': entezarbazdid
|
||||
'entezarbazdid': entezarbazdid,
|
||||
'bazdid': bazdid
|
||||
}
|
||||
return data
|
||||
Reference in new issue
Block a user