New structure JSON for DB and split date (no current test)

This commit is contained in:
Stefano Assenzo
2023-01-13 20:37:18 +00:00
parent cfb9c229f9
commit 092e3c4f84
3 changed files with 80 additions and 18 deletions

View File

@ -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()