From 5c4a0f1e9d93c0178aac63ada177fbaa68b094e2 Mon Sep 17 00:00:00 2001 From: "ishak jmilou.ishak" Date: Wed, 11 Dec 2024 18:45:22 +0100 Subject: [PATCH] busy with sending command to database --- docs/scrum/retrospective/retro_sprint_4.md | 1 + src/Python/flask/web/app.py | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 docs/scrum/retrospective/retro_sprint_4.md diff --git a/docs/scrum/retrospective/retro_sprint_4.md b/docs/scrum/retrospective/retro_sprint_4.md new file mode 100644 index 0000000..ec560ba --- /dev/null +++ b/docs/scrum/retrospective/retro_sprint_4.md @@ -0,0 +1 @@ +# retro sprint 4 \ No newline at end of file diff --git a/src/Python/flask/web/app.py b/src/Python/flask/web/app.py index 8fe6d4d..c9a37a1 100644 --- a/src/Python/flask/web/app.py +++ b/src/Python/flask/web/app.py @@ -71,6 +71,9 @@ def database(): except Exception as e: print(f"Database error: {e}") return "Er is een fout opgetreden bij het ophalen van de databasegegevens.", 500 + +def add_command(command): + command_query = "INSERT INTO kobuki (command) VALUES ();" if __name__ == '__main__': app.run(debug=True, port=5000)