Beispiel #1
0
def actQuiz(name,questions=[],topic=[],length=0,creator=None):
	try:
		questions=quiz.getQ(name)
		topic=quiz.getT(name)
		length=quiz.getLen(name)
		creator=quiz.getCr(name)
		return render_template("quiz.html",name=name,questions=questions,topic=topic,length=length,creator=creator)
	except:
		return "Error Occurred"
Beispiel #2
0
def quizH(name,about=None,topic=None,length=None,creator=None,comments=[]):
	try:
		comments=[]
		about=quiz.getAbout(name)
		topic=quiz.getT(name)
		creator=quiz.getCr(name)
		length=quiz.getLen(name)
		comments=quiz.getComments(name)
		return render_template("quizHome.html",name=name,topic=topic,about=about,length=length,creator=creator,comments=comments)
	except:
		return "<h1>This Quiz does not exist yet</h1>"