leon 3 هفته پیش
والد
کامیت
049822772d
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      server/server.py

+ 3 - 3
server/server.py

@@ -50,10 +50,10 @@ async def speed(request: Request):
                     text = f"{plate} : {speed} km/h"
                     draw(img, text, (100, 100))
                     byte_data = pil2byte(img)
-                    if ip_addr not in conf["ip2channle"]:
-                        logger.info(f"{ip_addr} not in ip2channle")
+                    if ip_addr not in conf["ip2channel"]:
+                        logger.info(f"{ip_addr} not in ip2channel")
                         return
-                    channel = conf["ip2channle"][ip_addr]
+                    channel = conf["ip2channel"][ip_addr]
                     res = await upload(url, ip_addr, classIndex, nvr, videoTime, filename, byte_data, plate, speed)
                     logger.info(res)
             except Exception as error: