fix: 煤粉热值取白班值
This commit is contained in:
parent
fdf67b5dc5
commit
ad9027d888
|
@ -36,7 +36,7 @@ def get_pcoal_heat(year_s: int, month_s: int, day_s: int):
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
qs = SfLog.objects.get(end_time__year=year_s, end_time__month=month_s, end_time__day=day_s,
|
qs = SfLog.objects.get(end_time__year=year_s, end_time__month=month_s, end_time__day=day_s,
|
||||||
mgroup__name='回转窑', shift__name='夜班')
|
mgroup__name='回转窑', shift__name='白班')
|
||||||
if qs.pcoal_heat is None:
|
if qs.pcoal_heat is None:
|
||||||
qs.pcoal_heat = 0
|
qs.pcoal_heat = 0
|
||||||
qs.save()
|
qs.save()
|
||||||
|
|
Loading…
Reference in New Issue