yf_yzl vor 2 Jahren
Ursprung
Commit
d0252463dd
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      smartfarming/api/views/forecast/worm_lamp.py

+ 1 - 1
smartfarming/api/views/forecast/worm_lamp.py

@@ -684,7 +684,7 @@ def pest_statistics_char_new(request):
                     else:
                     else:
                         pest_info_total[pest_name] = pest_num
                         pest_info_total[pest_name] = pest_num
                 except Exception as e:
                 except Exception as e:
-                    logger.error(f'虫情分析errorlogger.error(f"{result} {tuple_result} {e}")')
+                    logger.error(f'虫情分析errorlogger.error(f"{result} {tuple_result} {e} {photo_object.id}")')
     # 最后一天的数据统计,循环内加不了
     # 最后一天的数据统计,循环内加不了
     for pest_day_key,pest_day_value in pest_day_info.items():
     for pest_day_key,pest_day_value in pest_day_info.items():
         if pest_day_key in chart_info:
         if pest_day_key in chart_info: