mirror of
https://github.com/PokeAPI/pokeapi
synced 2025-02-16 12:38:25 +00:00
Update views.py
This commit is contained in:
parent
4919c0674d
commit
15aae235b4
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ def about(request):
|
|||
average_day = cache.get('average_day')
|
||||
if not average_day:
|
||||
average_day = int(round(total_views / ResourceView.objects.count()))
|
||||
cache.set('average_day')
|
||||
cache.set('average_day', average_day)
|
||||
|
||||
return render_to_response(
|
||||
'pages/about.html',
|
||||
|
|
Loading…
Add table
Reference in a new issue