from flask import Flask, render_template, url_for, redirect
from flask import session, escape, request
from peewee import *
#from datetime import date

app = Flask(__name__)
# http://docs.peewee-orm.com/en/latest/peewee/quickstart.html
database = SqliteDatabase('developmentData.db')

#class Device(Model):
#	idNumber = IntField()
#	serialNumber = CharField()
#	typeCategory = CharField()
#	description = TextField()
#	issues = TextField()
#	photo = CharField()
#	quality = CharField()

@app.route('/')
def index():
	# http://flask.pocoo.org/snippets/15/
	#if 'username' in session:
	return render_template('inventory.html', inventoryData="", deviceLogData="")
	#return redirect(url_for('login'));

#@app.route('/login', methods=['GET', 'POST'])
#def login():
#	if request.method == 'POST':
#		session['username'] = request.form['username']
#		return redirect(url_for('index'))
#	return render_template('login.html')


if __name__ == '__main__':
	db.connect()
	app.run()

@@ -549,17 +549,16 @@
 ts/15/%0A%09
-#
 if 'user
@@ -575,16 +575,17 @@
 ession:%0A
+%09
 %09return 
@@ -654,16 +654,36 @@
 ata=%22%22)%0A
+%09return %22%3Cp%3Eno%3C/p%3E%22%0A
 %09#return

Add session test