mirror of
https://github.com/assenzostefano/class-website.git
synced 2025-06-06 00:39:12 +02:00
New structure JSON for DB and split date (no current test)
This commit is contained in:
@ -18,16 +18,5 @@ app = Flask(__name__)
|
||||
def get_homework():
|
||||
homework = collection.find({}, {"_id": 0})
|
||||
return jsonify(list(homework))
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run()
|
||||
|
||||
#{
|
||||
# "date": {
|
||||
# "day": 12,
|
||||
# "month": 1,
|
||||
# "year": 2023
|
||||
# },
|
||||
# "description": "Per le vacanze di natale...",
|
||||
# "subject": "Disegno"
|
||||
#}
|
||||
app.run()
|
Reference in New Issue
Block a user