Skip to content

Commit

Permalink
refactor: made use of the f-string format
Browse files Browse the repository at this point in the history
  • Loading branch information
kherin committed Jan 5, 2024
1 parent fef1fbd commit 44a92e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project1/myapp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def getform(request):
if request.method == "POST":
id = request.POST["id"]
name = request.POST["name"]
return HttpResponse("Name: {}, Id: {}".format(name, id))
return HttpResponse(f'Name: {name}, Id: {id}')


def drinks(request, drink_name):
Expand Down

0 comments on commit 44a92e3

Please sign in to comment.