mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +00:00
kpi_csv_sq.py : changed the replace to append, may have to occasionally
save a database Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -52,8 +52,7 @@ class csv_sqlite_dash():
|
||||
self.df = self.df.append(df_kpi_tmp, ignore_index=True)
|
||||
|
||||
self.conn = sqlite3.connect(self.database)
|
||||
#data may be appended setting if_exists='append'
|
||||
self.df.to_sql(self.table,self.conn,if_exists='replace')
|
||||
self.df.to_sql(self.table,self.conn,if_exists='append')
|
||||
self.conn.close()
|
||||
|
||||
# duplicates the store since the the png are put back into the directory where the kpi are gathered
|
||||
|
||||
Reference in New Issue
Block a user