]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/views/player.py
Add a simple form for the versus view.
[xonotic/xonstat.git] / xonstat / views / player.py
index 7668774501756d054330a8920fce623aa6d168fc..83238adb5c59d194bab3f277052fe85b1fd7b406 100644 (file)
@@ -1167,9 +1167,18 @@ def player_versus_data(request):
 
     except Exception as e:
         log.debug(e)
-        raise pyramid.httpexceptions.HTTPNotFound
+
+        p1_id = None
+        p2_id = None
+        p1 = None
+        p2 = None
+        p1_wins = None
+        p2_wins = None
+        rgs = None
 
     return {
+            "p1_id" : p1_id,
+            "p2_id" : p2_id,
             "p1" : p1,
             "p2" : p2,
             "p1_wins" : p1_wins,