Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Мар'яна Тиха committed Dec 19, 2024
1 parent a28fa9c commit 336621c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions taxi/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
def index(request):
"""View function for the home page of the site."""

num_drivers = Driver.objects.count()
num_cars = Car.objects.count()
num_manufacturers = Manufacturer.objects.count()
num_visits = request.session.get("num_visits", 1)
request.session["num_visits"] = num_visits + 1

0 comments on commit 336621c

Please sign in to comment.