log.debug("ERROR: Blank game")\r
raise pyramid.httpexceptions.HTTPOk("OK")\r
\r
- # FIXME: if we have two players and game type is 'dm',\r
- # change this into a 'duel' gametype. This should be\r
- # removed when the stats actually send 'duel' instead of 'dm'\r
+ # the "duel" gametype is fake\r
if num_real_players(players, count_bots=True) == 2 and \\r
game_meta['G'] == 'dm':\r
game_meta['G'] = 'duel'\r
\r
+\r
+ # fix for DTG, who didn't #ifdef WATERMARK to set the revision info\r
+ try:\r
+ revision = game_meta['R']\r
+ except:\r
+ revision = "unknown"\r
+\r
+ log.debug(revision)\r
server = get_or_create_server(session=session, hashkey=idfp, \r
- name=game_meta['S'], revision=game_meta['R'],\r
+ name=game_meta['S'], revision=revision,\r
ip_addr=get_remote_addr(request))\r
\r
gmap = get_or_create_map(session=session, name=game_meta['M'])\r