From b4458ae5361ad8ecb005392f1d170dd657b9ff65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 28 Oct 2020 19:57:21 +0100 Subject: [PATCH] fixed math --- .dockerignore | 3 ++- .gitignore | 2 +- app.py | 7 ++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.dockerignore b/.dockerignore index 19d49af..6d69a71 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,3 @@ .git/ -*.md \ No newline at end of file +*.md +venv/ \ No newline at end of file diff --git a/.gitignore b/.gitignore index 13d1490..388004c 100644 --- a/.gitignore +++ b/.gitignore @@ -128,4 +128,4 @@ dmypy.json # Pyre type checker .pyre/ - +.idea/ \ No newline at end of file diff --git a/app.py b/app.py index c8466cc..26ddcf4 100644 --- a/app.py +++ b/app.py @@ -1,7 +1,8 @@ from flask import Flask app = Flask(__name__) + @app.route('/') -def calculatehard(): - result = 3 * 4 + 12 - return str(result) \ No newline at end of file +def calculate(): + result = 3 * (4 + 12) + return str(result)