Procházet zdrojové kódy

更正入库错误

daniel-ali před 2 roky
rodič
revize
d29ade4291
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      QMT/qmt_get_indicators.py

+ 2 - 2
QMT/qmt_get_indicators.py

@@ -303,11 +303,11 @@ if __name__ == '__main__':
                                port=3307,
                                password='r6kEwqWU9!v3',
                                database='hlfx_pool')
-    cursor_pool2 = db_pool.cursor()
+    cursor_pool2 = db_pool2.cursor()
     sql2 = "INSERT INTO daily_%s (date,value) VALUES('%s','%s')" % (fre, dt.now().strftime('%Y-%m-%d %H:%M:%S'),
                                                                     results_list_daily)
     cursor_pool2.execute(sql2)
     db_pool2.commit()
-    edtime = dt.now()
 
+    edtime = dt.now()
     print(edtime - sttime)