From 961265b1463b37f03c8772dd9d667b4ce02d6546 Mon Sep 17 00:00:00 2001 From: My name Date: Sat, 16 Mar 2024 14:33:12 -0500 Subject: [PATCH 1/3] Updated code to reflect the following: 1. View module returns "Hello Everyone!" and 2. Math module returns correct sum by correcting formula --- hello_app/math.py | 3 ++- hello_app/views.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hello_app/math.py b/hello_app/math.py index 4dda51a0..1585b885 100644 --- a/hello_app/math.py +++ b/hello_app/math.py @@ -1,3 +1,4 @@ def addition(number1, number2): # there seems to be a bug in this code - return number1 + 9999999997 \ No newline at end of file + return number1 + number2 + diff --git a/hello_app/views.py b/hello_app/views.py index 27c91079..d5e04a91 100644 --- a/hello_app/views.py +++ b/hello_app/views.py @@ -3,7 +3,7 @@ def hello(request): - return HttpResponse('Go away!') + return HttpResponse('Hello Everyone!') def two_plus_two(request): From b17b02a0f94fa5541ed8aea8b74c3d96e39e79c1 Mon Sep 17 00:00:00 2001 From: My name Date: Sat, 16 Mar 2024 14:41:11 -0500 Subject: [PATCH 2/3] Updated code to reflect the following: View module returns "Hello Everyone!" --- hello_app/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hello_app/views.py b/hello_app/views.py index d5e04a91..5936d079 100644 --- a/hello_app/views.py +++ b/hello_app/views.py @@ -3,6 +3,7 @@ def hello(request): + # Updated response return HttpResponse('Hello Everyone!') From 1389098274401df752d41d62ff61097cdaf58db2 Mon Sep 17 00:00:00 2001 From: My name Date: Wed, 20 Mar 2024 14:04:44 -0500 Subject: [PATCH 3/3] Updated message to return --- hello_app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_app/views.py b/hello_app/views.py index 5936d079..adb09937 100644 --- a/hello_app/views.py +++ b/hello_app/views.py @@ -4,7 +4,7 @@ def hello(request): # Updated response - return HttpResponse('Hello Everyone!') + return HttpResponse('Hello everyone!') def two_plus_two(request):