mirror of
https://github.com/assenzostefano/class-website.git
synced 2025-06-06 00:39:12 +02:00
Now there is no need to take a screenshot every time
This commit is contained in:
3
app.py
3
app.py
@ -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)
|
||||
|
Reference in New Issue
Block a user