Commit bba96b1a authored by peng.xiaozhe's avatar peng.xiaozhe

style:注释优化

parent 521761f1
...@@ -16,7 +16,7 @@ async def get_event_info_by_event_id(event_id): ...@@ -16,7 +16,7 @@ async def get_event_info_by_event_id(event_id):
async def get_scope_info_pds(mtid, create_time): async def get_scope_info_pds(mtid, create_time):
"""获取报警西南西""" """获取录波报警信息"""
sql = f""" sql = f"""
SELECT SELECT
fault_type, create_time datetime, index_loc result, url context_url fault_type, create_time datetime, index_loc result, url context_url
......
...@@ -169,8 +169,6 @@ async def scope_detail_service(id, wave_range, download=None, user_id=None): ...@@ -169,8 +169,6 @@ async def scope_detail_service(id, wave_range, download=None, user_id=None):
source = mysql_results source = mysql_results
scope_type = source.get("fault_type") scope_type = source.get("fault_type")
fault_type = config.EVENT_TYPE_MAP.get(scope_type) fault_type = config.EVENT_TYPE_MAP.get(scope_type)
# date_time = time_format.esstr_to_dtstr(
# source.get("datetime"))
date_time = datetime.datetime.strftime(source.get("datetime"), "%Y-%m-%d %H:%M:%S") date_time = datetime.datetime.strftime(source.get("datetime"), "%Y-%m-%d %H:%M:%S")
position = list(json.loads(source.get("result")).keys()) position = list(json.loads(source.get("result")).keys())
position_tmp = [ position_tmp = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment