Private
Public Access
1
0

oauth working again (CORS allow all)

This commit is contained in:
Sander Roosendaal
2016-11-26 09:24:43 +01:00
parent 3ef5c40be4
commit 70f4a187ab
8 changed files with 603 additions and 37 deletions

View File

@@ -84,6 +84,16 @@ def rdata(file,rower=rrower()):
return res
def delete_strokedata(id):
query = sa.text('DELETE FROM strokedata WHERE workoutid={id};'.format(
id=id,
))
with engine.connect() as conn, conn.begin():
try:
result = conn.execute(query)
except:
print "Database Locked"
def testdata(time,distance,pace,spm):
t1 = np.issubdtype(time,np.number)
t2 = np.issubdtype(distance,np.number)