Skip to content

Instantly share code, notes, and snippets.

@vvikramjhu
Created July 25, 2013 00:48
Show Gist options
  • Save vvikramjhu/6075920 to your computer and use it in GitHub Desktop.
Save vvikramjhu/6075920 to your computer and use it in GitHub Desktop.
cur.execute('insert into invoice (itemId, nameOfPerson, telephone, currentDate, waitTime ) values(?,?,?,CURRENT_TIMESTAMP,?)',
[value , name, telephone, 30 ])
g.db.commit()
# now delete all used up values from the values dict
lastId = cur.lastrowid
allRows = [dict(q =row[3]) for row in cur.fetchall()]
return render_template('basant.html' , values = details, i = itemName , s =lastId , ar = allRows)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment