fix: get_area_from_point 获取cache bug
This commit is contained in:
parent
28958b405c
commit
e2d652f9ef
|
@ -663,7 +663,8 @@ def get_area_from_point(x: int, y: int, floorNo: str, area_fix_id):
|
|||
area_temp = None
|
||||
area_list = cache.get('area_list', None)
|
||||
if not area_list:
|
||||
area_list = cache_areas_info()
|
||||
cache_areas_info()
|
||||
area_list = cache.get('area_list', None)
|
||||
point = Point(x, y)
|
||||
for i in area_list:
|
||||
if floorNo == i['floor_no']:
|
||||
|
|
Loading…
Reference in New Issue