testing
This commit is contained in:
@@ -957,6 +957,7 @@ def updatecpdata_sql(rower_id,delta,cp,table='cpdata',distance=pd.Series([]),deb
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
if not distance.empty:
|
||||
df['distance'] = distance
|
||||
|
||||
@@ -965,6 +966,7 @@ def updatecpdata_sql(rower_id,delta,cp,table='cpdata',distance=pd.Series([]),deb
|
||||
else:
|
||||
engine = create_engine(database_url, echo=False)
|
||||
|
||||
|
||||
with engine.connect() as conn, conn.begin():
|
||||
df.to_sql(table, engine, if_exists='append', index=False)
|
||||
conn.close()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script type='text/javascript'
|
||||
src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js'>
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
var previous = null;
|
||||
var current = null;
|
||||
@@ -24,7 +24,7 @@
|
||||
};
|
||||
previous = current;
|
||||
});
|
||||
setTimeout(checkJobs, 5000);
|
||||
setTimeout(checkJobs, 20000);
|
||||
}());
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user