Commit 3c1c57f1 authored by Sorrel Harriet's avatar Sorrel Harriet
Browse files

fixing deliberate mistakes in

parent 243c1a6f
......@@ -10,6 +10,7 @@ from bson.objectid import ObjectId
import cgi
import cgitb
from datetime import datetime
# import custom modules
from config import config
......@@ -52,5 +53,19 @@ if result:
print("<p>Oops. Something went wrong!</p>")
# check if either button clicked and insert a fluck in the database
if 'btn_fluck' in form:
result = db.flucks.insert( {
} )
elif 'btn_skip' in form:
result = db.flucks.insert( {
} )
# render cat_stats template, passing it the dynamic data
print( utils.render_template( config['TEMPLATE_DIR']+'footer.html' ) )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment