Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. @app.route('/')
  2. def home():
  3.     con = sqlite3.connect("C:/JournalL/main.db")
  4.     con.row_factory = sqlite3.Row
  5.     cur = con.cursor()
  6.     cur.execute("SELECT * FROM PersonFull WHERE isInOchered = 0")
  7.     rows = cur.fetchall()
  8.     return render_template("/home.html", rows=rows)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement