Now there is no need to take a screenshot every time

This commit is contained in:
Stefano Assenzo
2023-02-16 15:41:02 +00:00
committed by GitHub
parent 4e892bc95a
commit a3e27ec3d5
2 changed files with 776 additions and 2 deletions

3
app.py
View File

@ -31,7 +31,8 @@ collection = database["school-time-table"] #Collection school time table current
@app.route('/')
def homepage():
logging.info("A user went up: Homepage")
return render_template('homepage.html')
dict = list(collection.find({}, {"_id": 0, "School Subject": 1}))
return render_template('homepage.html', data=dict)
#imageList = os.listdir('static/images')
#imageList = ['images/' + image for image in imageList]
#return render_template('go.html', imageList=imageList)