Lots of goodies in this one. More work on the default web front page, a few extra utility functions for functions_db as well. Some cleanup in the session code to use some of the new abstraction I added a while back. Player's last login time is now also set on the User object. Issue 28: Forward slashes causing crashes, found by Kuros, fixed by me.
This commit is contained in:
parent
270db06820
commit
e2cc754441
7 changed files with 57 additions and 25 deletions
|
|
@ -8,6 +8,7 @@ from django.contrib.auth.models import User
|
|||
from django.utils import simplejson
|
||||
|
||||
from apps.news.models import NewsEntry
|
||||
import functions_db
|
||||
|
||||
"""
|
||||
This file contains the generic, assorted views that don't fall under one of
|
||||
|
|
@ -23,6 +24,9 @@ def page_index(request):
|
|||
pagevars = {
|
||||
"page_title": "Front Page",
|
||||
"news_entries": news_entries,
|
||||
"players_connected": functions_db.num_connected_players(),
|
||||
"players_registered": functions_db.num_total_players(),
|
||||
"players_connected_recent": functions_db.num_recently_connected_players(),
|
||||
}
|
||||
|
||||
context_instance = RequestContext(request)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue