Browse Source

1.特后前警告;2.人员资质校验派工前二次触发

maohu 1 day ago
parent
commit
3e9b33bf27

+ 5 - 0
Functions/DButilsFunction/checkFlightAlert.py

@@ -128,6 +128,11 @@ def checkFlightAlert(database:flightDB, singlePeopleNotice):
                             ETA_15_str = eta
                             ETA_15 = datetime.datetime.strptime(ETA_15_str, "%Y-%m-%d %H:%M:%S") - datetime.timedelta(minutes= 15)
                             ETA_40 = datetime.datetime.strptime(ETA_15_str, "%Y-%m-%d %H:%M:%S") - datetime.timedelta(minutes= 55)
+                            ETA = datetime.datetime.strptime(eta, "%Y-%m-%d %H:%M:%S")
+                            NXTSTD = datetime.datetime.strptime(data[0][32], "%Y-%m-%d %H:%M:%S") if data[0][32] != "" else ""
+                            if NXTSTD != "" and abs((NXTSTD-ETA).total_seconds()) < 3 * 3600:
+                                WarningInsert(database, i[0], "%s/%s/%s预计落地和预计起飞时间相差小于3H,请结合手册判断是否符合特后前签署条件,如需签署特后前注意通报72!"%(a, b, c), "到位警告")
+
                             if ETA_15 < now and "已到位" not in str(jjdw) and "到位警告" not in str(singlelogs):
                                 WarningInsert(database, i[0], "请确认%s/%s/%s到位情况!"%(a, b, c), "到位警告")
                             if ETA_15 < now and "已到位" not in str(jjdw) and judgeFunction(singlelogsall1,"到位个人提示推送",2) and singlePeopleNotice and "【交班航班】" not in fj:

+ 3 - 3
Functions/DButilsFunction/getRiskData.py

@@ -1,9 +1,9 @@
 from .flightDB import flightDB
 def getRiskData(fdb:flightDB,bay,time,acno,actype):
     res = fdb.queryTabel("RiskTable","提示内容","状态='生效' and 触发条件1 ='%s' and 触发条件2 ='%s' "%(bay,time))
-    res1 = fdb.queryTabel("RiskTable","提示内容","状态='生效' and 触发条件3 ='%s'" % acno)
-    res1 = fdb.queryTabel("RiskTable","提示内容","状态='生效' and 触发条件4 ='%s'" % actype)#触发条件4是机型
+    res1 = fdb.queryTabel("RiskTable","提示内容","状态='生效' and 触发条件3 ='%s' and 触发条件2 ='%s' " % (acno,time))
+    res2 = fdb.queryTabel("RiskTable","提示内容","状态='生效' and 触发条件4 ='%s' and 触发条件2 ='%s' " % (actype,time))#触发条件4是机型
     tips = "\n      [机位风险]:"+res[0][0] if res !=None and res !=[] and len(res) !=0 else ""
     tips = tips + "\n      [机号风险]:"+res1[0][0] if res1 !=None and res1 !=[] and len(res1) !=0 else tips
-    tips = tips + "\n      [机型风险]:"+res1[0][0] if res1 !=None and res1 !=[] and len(res1) !=0 else tips
+    tips = tips + "\n      [机型风险]:"+res2[0][0] if res2 !=None and res2 !=[] and len(res2) !=0 else tips
     return tips

+ 15 - 7
Functions/DButilsFunction/maintainAuthCheck.py

@@ -4,16 +4,24 @@ from unitls.LogerinTxt import app_logger
 def maintainAuthCheck(fdb:flightDB,name,flighttype):
     try:
         list = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"]
+        notpasspeople=[]
+        sts=False
         if name != "清空项目12345678987654321" and str(name) not in list:
-            search=fdb.queryTabel("workerinfo","姓名","姓名 = '{}' and 南航授权 like '%{}%'".format(name,flighttype))
-            if search ==None or len(search) !=0:
-                res = {"返回值":"ok"}
+            names = name.split(",")
+            for people in names:
+                search = fdb.queryTabel("workerinfo","姓名","姓名 = '{}' and 南航授权 like '%{}%'".format(people,flighttype))
+                if search or len(search) !=0:
+                    sts = True
+                else:
+                    sts = False
+                    notpasspeople.append(people)
+
+            if sts:
+                return { "返回值" : "ok" }
             else:
-                res = {"返回值": "fail"}
-            return res
+                return {"返回值" : "notpass","未通过人员":notpasspeople}
         else:
-            res = {"返回值": "ok"}
-            return res
+            return  {"返回值": "ok"}
     except Exception as e:
         app_logger.log_error(e)
         return {"返回值": "fail"}

+ 2 - 1
Functions/DButilsFunction/sortFlighttime.py

@@ -54,7 +54,8 @@ def sortFlighttime(database:flightDB,wokload:flightDB):
         nowDay_1 = (datetime.date.today() - datetime.timedelta(days=1)).strftime("%Y%m%d")
         nowDay_2 = (datetime.date.today() + datetime.timedelta(days=1)).strftime("%Y%m%d")
         now = datetime.datetime.now()
-        now_20 = (datetime.datetime.now() + datetime.timedelta(minutes=200)).strftime("%Y%m%d")
+        #now_20 = (datetime.datetime.now() + datetime.timedelta(minutes=200)).strftime("%Y%m%d")
+        now_20 = (datetime.datetime.now() + datetime.timedelta(hours=5)).strftime("%Y%m%d")
         initFlightDatabase(database, wokload, now_20)
         initFlightDatabase(database, wokload, nowDay_1)
         initFlightDatabase(database, wokload, nowDay_2)

+ 2 - 1
Functions/DButilsFunction/sortFlighttime2.py

@@ -17,7 +17,8 @@ def sortFlighttime2(database:flightDB,wokload:flightDB):
         nowDay_1 = (datetime.date.today() - datetime.timedelta(days=1)).strftime("%Y%m%d")
         nowDay_2 = (datetime.date.today() + datetime.timedelta(days=1)).strftime("%Y%m%d")
         now = datetime.datetime.now()
-        now_20 = (datetime.datetime.now() + datetime.timedelta(minutes=200)).strftime("%Y%m%d")
+        #now_20 = (datetime.datetime.now() + datetime.timedelta(minutes=200)).strftime("%Y%m%d")
+        now_20 = (datetime.datetime.now() + datetime.timedelta(hours=5)).strftime("%Y%m%d")
         initFlightDatabase(database,  wokload, now_20)
         initFlightDatabase(database,  wokload, nowDay_1)
         initFlightDatabase(database,  wokload, nowDay_2)

+ 24 - 6
Functions/DButilsFunction/tableWidgetDispaly.py

@@ -244,7 +244,10 @@ def functionDisaplay(row,rowNum,TaskFlightinfoAlldata, workjobDataAll, flightSts
                     "101": color_code1,
                     "102": color_code2,
                     "103": color_code3,
-                    "109": row[5]
+                    "109": row[5],
+                    "119": row[2], #保障时间
+                    "129": row[4],#航日期
+                    "139": row[0]+"-A",#sor编号
 
                     }
     elif TaskFlightinfo[3] == "停场":
@@ -283,7 +286,10 @@ def functionDisaplay(row,rowNum,TaskFlightinfoAlldata, workjobDataAll, flightSts
                     "101": color_code1,
                     "102": color_code2,
                     "103": color_code3,
-                    "109": row[5]
+                    "109": row[5],
+                    "119": row[2], #保障时间
+                    "129": row[4],#航班日期
+                    "139":row[0]+"-A",#sor编号
 
                     }
 
@@ -323,7 +329,10 @@ def functionDisaplay(row,rowNum,TaskFlightinfoAlldata, workjobDataAll, flightSts
                     "101": color_code1,
                     "102": color_code2,
                     "103": color_code3,
-                    "109": row[5]
+                    "109": row[5],
+                    "119":row[2], #保障时间
+                    "129":row[4],#航班日期
+                    "139":row[0]+"-A",#sor编号
                     }
 
     elif (TaskFlightinfo[3] == "TR" or TaskFlightinfo[3] == "TAF") and (row[3] == "短停接" or row[3] == "特后前接"):
@@ -362,7 +371,10 @@ def functionDisaplay(row,rowNum,TaskFlightinfoAlldata, workjobDataAll, flightSts
                     "101": color_code1,
                     "102": color_code2,
                     "103": color_code3,
-                    "109": row[5]
+                    "109": row[5],
+                    "119":row[2], #保障时间
+                    "129":row[4],#航班日期
+                    "139":row[0]+"-A",#sor编号
                     }
     elif (TaskFlightinfo[3] == "TR" or TaskFlightinfo[3] == "TAF") and (row[3] == "短停送" or row[3] == "特后前送"):
         item_dic = {"0": rowNum,
@@ -400,7 +412,10 @@ def functionDisaplay(row,rowNum,TaskFlightinfoAlldata, workjobDataAll, flightSts
                     "101": color_code1,
                     "102": color_code2,
                     "103": color_code3,
-                    "109": row[5]
+                    "109": row[5],
+                    "119":row[2], #保障时间
+                    "129":row[4],#航班日期
+                    "139":row[0]+"-A",#sor编号
                     }
     else:
         item_dic = {"0": rowNum,
@@ -438,7 +453,10 @@ def functionDisaplay(row,rowNum,TaskFlightinfoAlldata, workjobDataAll, flightSts
                     "101": color_code1,
                     "102": color_code2,
                     "103": color_code3,
-                    "109": row[5]
+                    "109": row[5],
+                    "119": row[2], #保障时间
+                    "129": row[4],#航班日期
+                    "139": row[0]+"-A",#sor编号
                     }
     #tableWidgetDispalydata[rowNum] = item_dic
     #rowNum += 1

+ 24 - 6
Functions/DButilsFunction/tableWidgetDispaly_66.py

@@ -283,7 +283,10 @@ def functionDisaplay(row,rowNum,TaskFlightinfoAlldata, workjobDataAll, flightSts
                     "101": color_code1,
                     "102": color_code2,
                     "103": color_code3,
-                    "109": row[5]
+                    "109": row[5],
+                    "119": row[2], #保障时间
+                    "129": row[4],#航日期
+                    "139": row[0]+"-A",#sor编号
 
                     }
     elif TaskFlightinfo[3] == "停场":
@@ -327,7 +330,10 @@ def functionDisaplay(row,rowNum,TaskFlightinfoAlldata, workjobDataAll, flightSts
                     "101": color_code1,
                     "102": color_code2,
                     "103": color_code3,
-                    "109": row[5]
+                    "109": row[5],
+                    "119": row[2], #保障时间
+                    "129": row[4],#航日期
+                    "139": row[0]+"-A",#sor编号
 
                     }
 
@@ -374,7 +380,10 @@ def functionDisaplay(row,rowNum,TaskFlightinfoAlldata, workjobDataAll, flightSts
                     "101": color_code1,
                     "102": color_code2,
                     "103": color_code3,
-                    "109": row[5]
+                    "109": row[5],
+                    "119": row[2], #保障时间
+                    "129": row[4],#航日期
+                    "139": row[0]+"-A",#sor编号
                     }
 
     elif (TaskFlightinfo[3] == "TR" or TaskFlightinfo[3] == "TAF") and (row[3] == "短停接" or row[3] == "特后前接"):
@@ -420,7 +429,10 @@ def functionDisaplay(row,rowNum,TaskFlightinfoAlldata, workjobDataAll, flightSts
                     "101": color_code1,
                     "102": color_code2,
                     "103": color_code3,
-                    "109": row[5]
+                    "109": row[5],
+                    "119": row[2], #保障时间
+                    "129": row[4],#航日期
+                    "139": row[0]+"-A",#sor编号
                     }
     elif (TaskFlightinfo[3] == "TR" or TaskFlightinfo[3] == "TAF") and (row[3] == "短停送" or row[3] == "特后前送"):
         item_dic = {"1": rowNum,
@@ -465,7 +477,10 @@ def functionDisaplay(row,rowNum,TaskFlightinfoAlldata, workjobDataAll, flightSts
                     "101": color_code1,
                     "102": color_code2,
                     "103": color_code3,
-                    "109": row[5]
+                    "109": row[5],
+                    "119": row[2], #保障时间
+                    "129": row[4],#航日期
+                    "139": row[0]+"-A",#sor编号
                     }
     else:
         item_dic = {"1": rowNum,
@@ -510,7 +525,10 @@ def functionDisaplay(row,rowNum,TaskFlightinfoAlldata, workjobDataAll, flightSts
                     "101": color_code1,
                     "102": color_code2,
                     "103": color_code3,
-                    "109": row[5]
+                    "109": row[5],
+                    "119": row[2], #保障时间
+                    "129": row[4],#航日期
+                    "139": row[0]+"-A",#sor编号
                     }
     for i in dic:
         if i not in item_dic.keys():

+ 8 - 0
Functions/DButilsFunction/updateDragDropItem.py

@@ -10,8 +10,10 @@ def updateDragDropItem(fdb:flightDB,column,text,flightid,displayMode,flighttype,
         if displayMode =="A":
             if flighttype =="短停接" or flighttype =="航后" or flighttype =="特后前接" or flighttype =="停场":
                 flightid_new=flightid+"-1"+"-A"
+                flightid_other=flightid+"-2"+"-A"
             elif flighttype =="短停送" or flighttype =="航前" or flighttype =="特后前送":
                 flightid_new = flightid + "-2" + "-A"
+                flightid_other=flightid+"-1"+"-A"
         elif displayMode =="B":
             if flighttype =="短停" or flighttype =="航后" or flighttype =="特后前" or flighttype =="停场":
                 flightid_new=flightid+"-1"+"-B"
@@ -31,11 +33,17 @@ def updateDragDropItem(fdb:flightDB,column,text,flightid,displayMode,flighttype,
                 else:
                     newdic[rowlistLabel[i]] = ""
             fdb.insertData("peopleSchedule{}".format(selectedtime),newdic)
+            if flighttype[-1] in ["接","送"] and column =="31":
+                newdic["编号"]=flightid_other
+                fdb.insertData("peopleSchedule{}".format(selectedtime),newdic)
         else:
             if text != "清空项目12345678987654321":
                 newdic[rowlistLabel[int(column)]]="'%s'"%text
             else:
                 newdic[rowlistLabel[int(column)]]="''"
             fdb.upDateItem("peopleSchedule{}".format(selectedtime),newdic,"编号='%s'"%flightid_new)
+            if flighttype[-1] in ["接","送"] and column =="31":
+                fdb.upDateItem("peopleSchedule{}".format(selectedtime),newdic,"编号='%s'"%flightid_other)
+
     except Exception as e:
         app_logger.log_error(e)

+ 0 - 1
Functions/DButilsFunction/updateEidteItem.py

@@ -14,7 +14,6 @@ def updateEidteItem(fdb:flightDB,text,flightid,displayMode,flighttype,selectedti
         elif displayMode =="B":
             if flighttype =="短停" or flighttype =="航后" or flighttype =="特后前" or flighttype =="停场":
                 flightid_new=flightid+"-1"+"-B"
-        nowDay = datetime.datetime.now().strftime("%Y%m%d")
         flightids_in_peopleSchedule=fdb.getSingledata("编号","peopleSchedule{}".format(selectedtime))
         newdic = {}
         if str(flightid_new) not in str(flightids_in_peopleSchedule):

+ 1 - 1
Functions/DButilsFunction/updateRiskdb.py

@@ -13,7 +13,7 @@ def updateRiskdb(database:flightDB, fileName):   #创建准备组提示数据库
         for myrow in myrows:
             mydics0 = {}
             for i in range(0, (len(mytitle))):
-                mydics0[mytitle[i]] = "%s"%myrow[i]
+                mydics0[mytitle[i]] = "%s"%(myrow[i] if myrow[i] != None and myrow[i] else '')
             #print(mydics0)
             fdb.lazyInsertData('RiskTable',mydics0)
         fdb.FunctionCommit()

+ 3 - 3
Functions/DataComputer.py

@@ -310,8 +310,8 @@ def mytask():
 
     alldata=DataDBUtilsgetData("sortFlight%s" % nowDay, "*", "编号 != ''")
     Yalldata=DataDBUtilsgetData("sortFlight%s" % nowDay_1, "*", "编号 != ''")
-    alldata_task=DataDBUtilsgetData("TaskFlightinfo%s" % nowDay, "*", "航班编号 != ''")
-    Yalldata_task=DataDBUtilsgetData("TaskFlightinfo%s" % nowDay_1, "*", "航班编号 != ''")
+    alldata_task=DataDBUtilsgetData("TaskFlightinfo%s" % nowDay, "*", "航班编号 != '' and 取消标志 = '0' ")
+    Yalldata_task=DataDBUtilsgetData("TaskFlightinfo%s" % nowDay_1, "*", "航班编号 != '' and  取消标志 = '0' ")
     try:
         mytask1 = function1(alldata_task,Yalldata_task)
         finishdeTask=finishdeTask+"task1/"
@@ -512,7 +512,7 @@ def CountFinshed(lists: list):  # 返回列表
         return res
 
 def function1(alldata,Yalldata):   #查询每日航班的分布
-    resTR=CountInList(alldata, "TR", 3) * 2
+    resTR=CountInList(alldata, "TR", 3)*2
     resPEF=CountInList(alldata, "AP", 3)
     resPOF=CountInList(alldata, "AF", 3)
     resTAF=CountInList(alldata, "TAF", 3)*2

+ 14 - 0
Functions/flaskDBUtils4PG.py

@@ -94,6 +94,13 @@ def getVin(db:flaskDB,mode,num):
     elif num == 3: #明天
         res = db.queryTabel(vin, "VIN%s"%mode, "ID = '3'")[0][0]
     return res
+def getallVin(db:flaskDB):
+    initVin(db)
+    res=[]
+    for mode in ["A","B"]:
+        for num in [1,2,3]:
+            res.append(db.queryTabel(vin, "VIN%s"%mode, "ID = '%s'"%num)[0][0])
+    return res
 
 def updateVin(db:flaskDB,mode,num):
     initVin(db)
@@ -105,6 +112,13 @@ def updateVin(db:flaskDB,mode,num):
     elif num ==3:
         db.upDateItem(vin, {'VIN%s'%mode:"'%s'"%Vin}, 'ID=3')
     return Vin
+def updateALlVin(db:flaskDB):
+    initVin(db)
+    Vin=time.time()
+    for mode in ["A","B"]:
+        for num in [1,2,3]:
+            db.upDateItem(vin, {'VIN%s'%mode:"'%s'"%Vin}, 'ID=%s'%num)
+
 
 def getIpPhoneip(db:flaskDB):
     initIpPhoneip(db)

+ 74 - 6
SeverStart.py

@@ -53,7 +53,12 @@ print(f"当前客户端版本:{severVersion}/白板版本:{displayVersion}")
 print(f"当前服务器为:【{ServerClas}】")
 print(f"当前服务器航班数据传输模式为:【{flightDataTransfer}】")
 print(f"当前服务器显示计算请求模式为:【{displayDataTransfer}】")
-
+VinA1="328"
+VinA2="328"
+VinA3="328"
+VinB1="328"
+VinB2="328"
+VinB3="328"
 # 获取本地IP地址
 def get_local_ip():
     try:
@@ -304,6 +309,68 @@ def maintainAuthCheck(name,flighttype):
     print(datetime.datetime.now(), "[%s]维修权限验证"%remote_addr)
     return res
 
+def updatetimer1():
+    global VinA1, VinA2,VinA3,VinB1, VinB2, VinB3
+    #print(VinA1, VinA2,VinA3,VinB1, VinB2, VinB3)
+    db = flaskDBUtils.flaskDB(host = dbhost , port = dbport , user = dbuser , password = dbpassword ,database = database)
+    try:
+        res = flaskDBUtils.getallVin(db)
+        db.close()
+        today = datetime.datetime.now().strftime("%Y%m%d")
+        tomorrow = (datetime.datetime.now() + datetime.timedelta(days=1)).strftime("%Y%m%d")
+        yesterday = (datetime.datetime.now() - datetime.timedelta(days=1)).strftime("%Y%m%d")
+        dict={"A1":[VinA1,res[0],yesterday],"A2":[VinA2,res[1],today], "A3":[VinA3,res[2],tomorrow], "B1":[VinB1,res[3], yesterday], "B2":[VinB2,res[4], today], "B3":[VinB3,res[5], tomorrow]}
+        for key,value in dict.items():
+            if value[0] == value[1]:
+                tableWidgetDispaly(value[2],key[-1])
+                tableWidgetDispaly2(value[2],key[-1])
+                if key== "A1":
+                    VinA1=updateVin(key[0],key[-1])["返回值"]
+                elif key== "A2":
+                    VinA2=updateVin(key[0],key[-1])["返回值"]
+                elif key== "A3":
+                    VinA3=updateVin(key[0],key[-1])["返回值"]
+                elif key== "B1":
+                    VinB1=updateVin(key[0],key[-1])["返回值"]
+                elif key== "B2":
+                    VinB2=updateVin(key[0],key[-1])["返回值"]
+                elif key== "B3":
+                    VinB3=updateVin(key[0],key[-1])["返回值"]
+            else:
+                if key == "A1":
+                    VinA1=value[1]
+                elif key== "A2":
+                    VinA2=value[1]
+                elif key== "A3":
+                    VinA3=value[1]
+                elif key== "B1":
+                    VinB1=value[1]
+                elif key== "B2":
+                    VinB2=value[1]
+                elif key== "B3":
+                    VinB3=value[1]
+        #print(VinA1 , VinA2 , VinA3 , VinB1 , VinB2 , VinB3)
+    except Exception as e:
+        print(traceback.format_exc())
+        db.close()
+def updatetimer():
+
+    db = flaskDBUtils.flaskDB(host = dbhost , port = dbport , user = dbuser , password = dbpassword ,database = database)
+    try:
+        today = datetime.datetime.now().strftime("%Y%m%d")
+        tomorrow = (datetime.datetime.now() + datetime.timedelta(days=1)).strftime("%Y%m%d")
+        yesterday = (datetime.datetime.now() - datetime.timedelta(days=1)).strftime("%Y%m%d")
+        dict={"1":yesterday,"2":today, "3":tomorrow}
+        for key,value in dict.items():
+            tableWidgetDispaly(value,key)
+            tableWidgetDispaly2(value,key)
+        flaskDBUtils.updateALlVin(db)
+        #print(VinA1 , VinA2 , VinA3 , VinB1 , VinB2 , VinB3)
+    except Exception as e:
+        print(traceback.format_exc())
+        db.close()
+
+
 def task_function(taskname, paramaDict):
     #ts = time.time()
     #print('开始请求:{}'.format(taskname))
@@ -340,14 +407,14 @@ async def getFlightData2(type):
             date_time = Judge_bc()["date"]
             nowDay = datetime.datetime.now()
             nowDayStr = nowDay.strftime("%Y%m%d")
-            now_130 = (datetime.datetime.now() + datetime.timedelta(minutes=210)).strftime("%Y%m%d")
+            now_130 = (datetime.datetime.now() + datetime.timedelta(minutes=300)).strftime("%Y%m%d")
             nowStr = nowDay.strftime("%Y%m%d %H:%M:%S")
             print(datetime.datetime.now(), "[判断:%s,当前:%s,+130:%s]" % (date_time, nowDayStr, now_130))
-            if date_time == nowDayStr and now_130 == nowDayStr:  # 当班次判断为09:00-20:30时,只查当日   20:30取决于210min不取决于班次判断
+            if date_time == nowDayStr and now_130 == nowDayStr:  # 当班次判断为09:00-1900时,只查当日   1900取决于300min不取决于班次判断
                 nowDay_1 =nowDayStr
                 nowday_11=nowDayStr
                 searchDay=f"{nowDayStr[:4]}-{nowDayStr[4:6]}-{nowDayStr[6:]}"
-            elif date_time == nowDayStr and now_130 != nowDayStr:  # 当班次判断为20:30-2400时,今日和明日
+            elif date_time == nowDayStr and now_130 != nowDayStr:  # 当班次判断为1900-2400时,今日和明日
                 nowDay_1 = (datetime.date.today() + datetime.timedelta(days=1)).strftime("%Y%m%d")
                 nowday_11=nowDayStr
                 searchDay=f"{nowDayStr[:4]}-{nowDayStr[4:6]}-{nowDayStr[6:]}"
@@ -421,6 +488,7 @@ async def getFlightData2(type):
                         dingdinginfoget(fdb)
                         CalledChecked(fdb)
                         flaskDBUtils.insertinfolog(db,nowStr,str(taskflightdata['code']))
+                        updatetimer()
                         print(datetime.datetime.now(), "A动态刷新")
                         #print('数据库耗时:{}'.format(time.time()-ts2))
                         code = str(taskflightdata['code'])+str(time.time()-ts)
@@ -1117,7 +1185,7 @@ def tableWidgetDispalyRead(date):
     fdb.close()
     #print(datetime.datetime.now(),res)
     remote_addr = request.remote_addr
-    print(datetime.datetime.now(),"[%s]A模式航班信息刷新请求"%remote_addr)
+    print(datetime.datetime.now(),"[%s]A模式只读航班信息刷新请求"%remote_addr)
     return res
 
 @app.route('/static/tableWidgetDispalyRead2/<date>')
@@ -1127,7 +1195,7 @@ def tableWidgetDispalyRead2(date):
     fdb.close()
     #print(datetime.datetime.now(),res)
     remote_addr = request.remote_addr
-    print(datetime.datetime.now(),"[%s]B模式航班信息刷新请求"%remote_addr)
+    print(datetime.datetime.now(),"[%s]B模式只读航班信息刷新请求"%remote_addr)
     return res
 
 @app.route('/static/tableWidgetDispaly/<selectedtime>/<date>')