xonotic/xonstat.git
8 years agoFix drop down event listener.
Ant Zucaro [Fri, 29 Mar 2013 19:26:46 +0000 (15:26 -0400)]
Fix drop down event listener.

https://github.com/mitnal/bootstrap/commit/29df6eaa230df3e1c9e5bcb4c86c75132ef32817

8 years agoMake the accuracy and damage graphs 100% wide.
Ant Zucaro [Fri, 29 Mar 2013 19:21:01 +0000 (15:21 -0400)]
Make the accuracy and damage graphs 100% wide.

8 years agoAdd fallback background color.
Ant Zucaro [Thu, 28 Mar 2013 20:27:59 +0000 (16:27 -0400)]
Add fallback background color.

8 years agoAdd minified app CSS file.
Ant Zucaro [Thu, 28 Mar 2013 20:23:10 +0000 (16:23 -0400)]
Add minified app CSS file.

8 years agoUse minified CSS files. Hooray yuicompressor!
Ant Zucaro [Thu, 28 Mar 2013 20:08:49 +0000 (16:08 -0400)]
Use minified CSS files. Hooray yuicompressor!

8 years agoMake the search page awesome.
Ant Zucaro [Thu, 28 Mar 2013 19:46:26 +0000 (15:46 -0400)]
Make the search page awesome.

8 years agoSet the highlighted nav properly for gamefinder.
Ant Zucaro [Thu, 28 Mar 2013 19:18:44 +0000 (15:18 -0400)]
Set the highlighted nav properly for gamefinder.

8 years agoUse new glyphicon font for up/down/minus Elo.
Ant Zucaro [Thu, 28 Mar 2013 19:11:28 +0000 (15:11 -0400)]
Use new glyphicon font for up/down/minus Elo.

8 years agoChange location of glyph font file.
Ant Zucaro [Thu, 28 Mar 2013 19:05:22 +0000 (15:05 -0400)]
Change location of glyph font file.

8 years agoPort over all older styles (tables in particular).
Ant Zucaro [Thu, 28 Mar 2013 18:27:42 +0000 (14:27 -0400)]
Port over all older styles (tables in particular).

All of the table-based stuff wasn't looking right under default, so
port over the older ones instead. Change all tables having the
"table-bordered" class to "table-hover".

8 years agoCenter the footer.
Ant Zucaro [Mon, 25 Mar 2013 21:47:37 +0000 (17:47 -0400)]
Center the footer.

8 years agoClean up the rest of the main index style issues.
Ant Zucaro [Mon, 25 Mar 2013 21:41:49 +0000 (17:41 -0400)]
Clean up the rest of the main index style issues.

I will need to make "table-hover" class additions to all the tables
that need their backgrounds changed upon hover.

8 years agoAdd header image, statline, and border box.
Ant Zucaro [Mon, 25 Mar 2013 00:17:01 +0000 (20:17 -0400)]
Add header image, statline, and border box.

8 years agoMove search over to the right if size permits.
Ant Zucaro [Mon, 25 Mar 2013 00:03:57 +0000 (20:03 -0400)]
Move search over to the right if size permits.

8 years agoRemove responsive CSS. It is not needed.
Ant Zucaro [Mon, 25 Mar 2013 00:03:35 +0000 (20:03 -0400)]
Remove responsive CSS. It is not needed.

8 years agoAdd full bootstrap. This is good for debugging.
Ant Zucaro [Mon, 25 Mar 2013 00:02:30 +0000 (20:02 -0400)]
Add full bootstrap. This is good for debugging.

8 years agoConfigure the nav for mobile.
Ant Zucaro [Sun, 24 Mar 2013 23:42:56 +0000 (19:42 -0400)]
Configure the nav for mobile.

8 years agoAdd new assets to the base template.
Ant Zucaro [Sun, 24 Mar 2013 23:42:33 +0000 (19:42 -0400)]
Add new assets to the base template.

8 years agoIncorporate bootstrap, fix nav and search.
Ant Zucaro [Sun, 24 Mar 2013 13:43:28 +0000 (09:43 -0400)]
Incorporate bootstrap, fix nav and search.

This rigs up the bootstrap files into the templates. The style
definitions have to change to fit the new setup.

8 years agoOptimize the background image.
Ant Zucaro [Sun, 24 Mar 2013 13:40:54 +0000 (09:40 -0400)]
Optimize the background image.

8 years agoAdd bootstrap.
Ant Zucaro [Sun, 24 Mar 2013 13:33:06 +0000 (09:33 -0400)]
Add bootstrap.

Bootstrap release candidate 3 is complete enough for me to use. In
particular I can have the icon font and the minimized CSS (for
responsive and regular).

8 years agoOnly status 200s should be removed from the db.
Ant Zucaro [Tue, 19 Feb 2013 22:29:25 +0000 (17:29 -0500)]
Only status 200s should be removed from the db.

8 years agoThis path will never be executed. Remove it.
Ant Zucaro [Tue, 19 Feb 2013 22:27:08 +0000 (17:27 -0500)]
This path will never be executed. Remove it.

8 years agoLoop until binding to the address
Ant Zucaro [Tue, 19 Feb 2013 22:26:22 +0000 (17:26 -0500)]
Loop until binding to the address

8 years agoMove the static assets to the "m" subdirectory
Ant Zucaro [Mon, 18 Feb 2013 20:53:04 +0000 (15:53 -0500)]
Move the static assets to the "m" subdirectory

8 years ago"Intercept" requests during downtime
Ant Zucaro [Sun, 17 Feb 2013 21:05:33 +0000 (16:05 -0500)]
"Intercept" requests during downtime

This is a Golang utility that allows the stats maintainer to still
accept requests from remote servers while the XonStat server is
down for maintenance. It basically takes the requests and stores
them into a small sqlite3 database for future (re)submission.

When users navigate to the normal stats URL, they'll be greeted
with a downpage informing them of maintenance work instead of the
normal app.

Usage of xs_interceptor:
    xs_interceptor [options] <command>

Where <command> is one of the following:
    create   - create the requests db (sqlite3 db file)
    drop     - remove the requests db
    list     - lists the requests in the db
    serve    - listens for stats requests, storing them if found
    resubmit - resubmits the requests to another URL

Where [options] is one or more of the following:
    -port    - port number (int) to listen on for 'serve' command
    -url     - url (string) to submit requests

8 years agoShow CTS deaths on the scoreboard again
Ant Zucaro [Sat, 9 Feb 2013 14:02:54 +0000 (09:02 -0500)]
Show CTS deaths on the scoreboard again

8 years agoCTS deaths should not count towards the overall K:D ratio
Ant Zucaro [Sat, 9 Feb 2013 13:57:43 +0000 (08:57 -0500)]
CTS deaths should not count towards the overall K:D ratio

8 years agoOn second thought, don't
Ant Zucaro [Sat, 9 Feb 2013 01:09:56 +0000 (20:09 -0500)]
On second thought, don't

8 years agoDon't count kills in CTS
Ant Zucaro [Sat, 9 Feb 2013 00:58:06 +0000 (19:58 -0500)]
Don't count kills in CTS

8 years agoTwo new utilities written in Go.
Ant Zucaro [Wed, 6 Feb 2013 02:30:12 +0000 (21:30 -0500)]
Two new utilities written in Go.

xs_parselog parses XonStat log and extracts/recreates requests
into text files, one request per file.

xs_submit takes a XonStat request via a text file and submits it
to a user-specified URL.

Both of these utlities can be run with "go run <filename> [opts]"
after having install the Go programming language on your machine.
Alternatively, one can build executables with "go build <filename>".

8 years agoStore the active mods in the games table
Ant Zucaro [Tue, 5 Feb 2013 08:52:08 +0000 (03:52 -0500)]
Store the active mods in the games table

8 years agoSave the server port number during submission
Ant Zucaro [Tue, 5 Feb 2013 08:38:51 +0000 (03:38 -0500)]
Save the server port number during submission

8 years agoGeneric game meta handling
Ant Zucaro [Tue, 5 Feb 2013 08:22:09 +0000 (03:22 -0500)]
Generic game meta handling

8 years agoSet server default create_dt to UTC time.
Ant Zucaro [Tue, 5 Feb 2013 02:00:17 +0000 (21:00 -0500)]
Set server default create_dt to UTC time.

8 years agoSearch servers by hashkey first, then name. Update properly.
Ant Zucaro [Tue, 5 Feb 2013 01:43:14 +0000 (20:43 -0500)]
Search servers by hashkey first, then name. Update properly.

8 years agoGah, one more place to center the damn button and icon!
Ant Zucaro [Tue, 5 Feb 2013 01:42:48 +0000 (20:42 -0500)]
Gah, one more place to center the damn button and icon!

8 years agoCenter the view button and game type icons in other pages.
Ant Zucaro [Tue, 5 Feb 2013 00:44:26 +0000 (19:44 -0500)]
Center the view button and game type icons in other pages.

8 years agoCenter view button and game type icons
Ant Zucaro [Tue, 5 Feb 2013 00:36:08 +0000 (19:36 -0500)]
Center view button and game type icons

8 years agoFlip short and long description.
Ant Zucaro [Tue, 5 Feb 2013 00:30:29 +0000 (19:30 -0500)]
Flip short and long description.

8 years agoUse gametype description for icon tooltips (e.g. ca -> Clan Arena)
Jan Behrens [Mon, 4 Feb 2013 21:37:31 +0000 (22:37 +0100)]
Use gametype description for icon tooltips (e.g. ca -> Clan Arena)

8 years agoMerge branch 'master' of http://git.xonotic.org/xonotic/xonstat into approved
Jan Behrens [Sun, 3 Feb 2013 20:08:01 +0000 (21:08 +0100)]
Merge branch 'master' of git.xonotic.org/xonotic/xonstat into approved

8 years agoGive the header stanza a bit more room.
Ant Zucaro [Sun, 3 Feb 2013 19:54:05 +0000 (14:54 -0500)]
Give the header stanza a bit more room.

8 years agoFix problems with too wide text in game_info page (span6 -> span10)
Jan Behrens [Sun, 3 Feb 2013 19:52:44 +0000 (20:52 +0100)]
Fix problems with too wide text in game_info page (span6 -> span10)

8 years agoAdding gametype icons to game_info page
Jan Behrens [Sun, 3 Feb 2013 14:21:11 +0000 (15:21 +0100)]
Adding gametype icons to game_info page

8 years agoMerge branch 'master' of http://git.xonotic.org/xonotic/xonstat into approved
Jan Behrens [Sat, 2 Feb 2013 16:26:16 +0000 (17:26 +0100)]
Merge branch 'master' of git.xonotic.org/xonotic/xonstat into approved

8 years agoAdding colors for yellow/pink teams; make all team colors consistent (HSV value ...
Jan Behrens [Sat, 2 Feb 2013 16:25:01 +0000 (17:25 +0100)]
Adding colors for yellow/pink teams; make all team colors consistent (HSV value = X/100/30)

8 years agoMerge branch 'approved' of git://gitorious.org/xonotic/xonstat into zykure-approved
Ant Zucaro [Sat, 2 Feb 2013 16:13:37 +0000 (11:13 -0500)]
Merge branch 'approved' of git://gitorious.org/xonotic/xonstat into zykure-approved

8 years agoMerge branch 'master' of http://git.xonotic.org/xonotic/xonstat into approved
Jan Behrens [Sat, 2 Feb 2013 16:04:38 +0000 (17:04 +0100)]
Merge branch 'master' of git.xonotic.org/xonotic/xonstat into approved

8 years agoFix KH scoreboard display
Ant Zucaro [Sat, 2 Feb 2013 16:01:06 +0000 (11:01 -0500)]
Fix KH scoreboard display

8 years agoWorkaround for missing fastest for RC/CTS
Ant Zucaro [Sat, 2 Feb 2013 15:41:11 +0000 (10:41 -0500)]
Workaround for missing fastest for RC/CTS

8 years agoFixing up after recent updates: correct win percentage; correct gametype display
Jan Behrens [Sat, 2 Feb 2013 10:40:58 +0000 (11:40 +0100)]
Fixing up after recent updates: correct win percentage; correct gametype display

8 years agoAdded option to filter by player id (for debugging); fixed nick width in Archer's...
Jan Behrens [Sat, 2 Feb 2013 10:39:57 +0000 (11:39 +0100)]
Added option to filter by player id (for debugging); fixed nick width in Archer's badge skin

8 years agoAdd race support to the scoreboard.
Ant Zucaro [Fri, 1 Feb 2013 20:53:29 +0000 (15:53 -0500)]
Add race support to the scoreboard.

8 years agoAdd nb support to the scoreboard.
Ant Zucaro [Fri, 1 Feb 2013 20:49:42 +0000 (15:49 -0500)]
Add nb support to the scoreboard.

8 years agoNo Elo for keyhunt, remove old ka name.
Ant Zucaro [Fri, 1 Feb 2013 20:45:40 +0000 (15:45 -0500)]
No Elo for keyhunt, remove old ka name.

8 years agoAdd kh support to the scoreboard.
Ant Zucaro [Sun, 27 Jan 2013 04:01:11 +0000 (23:01 -0500)]
Add kh support to the scoreboard.

8 years agoAdd rune support to the scoreboard.
Ant Zucaro [Sun, 27 Jan 2013 03:28:44 +0000 (22:28 -0500)]
Add rune support to the scoreboard.

8 years agoAdd keepaway support to the scoreboard.
Ant Zucaro [Sun, 27 Jan 2013 03:26:57 +0000 (22:26 -0500)]
Add keepaway support to the scoreboard.

8 years agoAdd ft support to the scoreboard.
Ant Zucaro [Sun, 27 Jan 2013 03:07:11 +0000 (22:07 -0500)]
Add ft support to the scoreboard.

8 years agoAdd dom support.
Ant Zucaro [Sun, 27 Jan 2013 03:01:28 +0000 (22:01 -0500)]
Add dom support.

8 years agofastest_cap -> fastest
Ant Zucaro [Sat, 26 Jan 2013 22:38:02 +0000 (17:38 -0500)]
fastest_cap -> fastest

8 years agoMissed a gametype in the supported_games list.
Ant Zucaro [Sat, 26 Jan 2013 22:20:22 +0000 (17:20 -0500)]
Missed a gametype in the supported_games list.

8 years agoAdd CTS support to the scoreboard.
Ant Zucaro [Sat, 26 Jan 2013 17:49:33 +0000 (12:49 -0500)]
Add CTS support to the scoreboard.

8 years agoClean up scoreboard and accuracy info for CTS.
Ant Zucaro [Sat, 26 Jan 2013 17:12:10 +0000 (12:12 -0500)]
Clean up scoreboard and accuracy info for CTS.

8 years agoAdd a new blank game check for CTS.
Ant Zucaro [Sat, 26 Jan 2013 17:06:23 +0000 (12:06 -0500)]
Add a new blank game check for CTS.

8 years agoAdd cq support to the scoreboard.
Ant Zucaro [Sat, 26 Jan 2013 15:44:31 +0000 (10:44 -0500)]
Add cq support to the scoreboard.

8 years agoAdd CA support to the scoreboard.
Ant Zucaro [Sat, 26 Jan 2013 14:52:09 +0000 (09:52 -0500)]
Add CA support to the scoreboard.

8 years agoAdd assault support to the scoreboard
Ant Zucaro [Sat, 26 Jan 2013 14:38:21 +0000 (09:38 -0500)]
Add assault support to the scoreboard

8 years agoSupport a ton of new fields.
Ant Zucaro [Sat, 26 Jan 2013 14:31:31 +0000 (09:31 -0500)]
Support a ton of new fields.

8 years agoAllow version-specific gametype support.
Ant Zucaro [Fri, 25 Jan 2013 22:41:38 +0000 (17:41 -0500)]
Allow version-specific gametype support.

It often happens when a gametype can't be supported because of
some random bug in the server code. This presents a problem
for when the bug is fixed, but servers still use the old code. We
can now specify that a game type is supported only after a certain
time by using version number restrictions. For example, CA is
supported, but only if the stats submission version is >= 5. Older
servers still having versions <= 5 won't record CA b/c they would
not pass this restriction.

8 years agoRemove a debug statement.
Ant Zucaro [Fri, 25 Jan 2013 22:16:29 +0000 (17:16 -0500)]
Remove a debug statement.

8 years agoMake latency displays parameter-driven.
Ant Zucaro [Wed, 23 Jan 2013 12:13:27 +0000 (07:13 -0500)]
Make latency displays parameter-driven.

You can now use the show_latency query parameter to show ping
information in the scoreboards on the game_info page.

8 years agoFixed display of bots in the scoreboard
Jan Behrens [Tue, 22 Jan 2013 21:43:20 +0000 (22:43 +0100)]
Fixed display of bots in the scoreboard

8 years agoMaking CA games work in XonStat
Jan Behrens [Tue, 22 Jan 2013 21:35:11 +0000 (22:35 +0100)]
Making CA games work in XonStat

8 years agoMerge branch 'master' of http://git.xonotic.org/xonotic/xonstat into approved
Jan Behrens [Tue, 22 Jan 2013 16:31:08 +0000 (17:31 +0100)]
Merge branch 'master' of git.xonotic.org/xonotic/xonstat into approved

8 years agoAdd two helper methods to simplify.
Ant Zucaro [Mon, 21 Jan 2013 21:39:41 +0000 (16:39 -0500)]
Add two helper methods to simplify.

8 years agoMajor refactor of submissions code.
Ant Zucaro [Mon, 21 Jan 2013 17:49:24 +0000 (12:49 -0500)]
Major refactor of submissions code.

8 years agoremove old submission handler
Ant Zucaro [Mon, 21 Jan 2013 17:49:11 +0000 (12:49 -0500)]
remove old submission handler

8 years agoRedo submission handling.
Ant Zucaro [Mon, 21 Jan 2013 15:24:12 +0000 (10:24 -0500)]
Redo submission handling.

8 years agoSome layout fixes for the player badges (nick_maxwidth)
Jan Behrens [Thu, 17 Jan 2013 23:49:34 +0000 (00:49 +0100)]
Some layout fixes for the player badges (nick_maxwidth)

8 years agoMerge branch 'approved' of gitorious.org:xonotic/xonstat into approved
Jan Behrens [Wed, 16 Jan 2013 18:47:01 +0000 (19:47 +0100)]
Merge branch 'approved' of gitorious.org:xonotic/xonstat into approved

8 years agoMerge branch 'master' into approved.new
Jan Behrens [Wed, 16 Jan 2013 18:46:08 +0000 (19:46 +0100)]
Merge branch 'master' into approved.new

8 years agoAdd views for player captimes (all the fastest caps per player) and map captimes...
Jan Behrens [Wed, 16 Jan 2013 17:40:09 +0000 (18:40 +0100)]
Add views for player captimes (all the fastest caps per player) and map captimes (all the fastest caps per map)

8 years agoUse scoreboardpos instead of rank to sort.
Ant Zucaro [Wed, 16 Jan 2013 02:45:02 +0000 (21:45 -0500)]
Use scoreboardpos instead of rank to sort.

8 years agoSupport the new scoreboardpos and teamrank fields.
Ant Zucaro [Wed, 16 Jan 2013 02:37:44 +0000 (21:37 -0500)]
Support the new scoreboardpos and teamrank fields.

Two new player events being sent to sort games every which way :D.

8 years agoMerge branch 'master' into approved
Jan Behrens [Fri, 11 Jan 2013 16:39:54 +0000 (17:39 +0100)]
Merge branch 'master' into approved

Conflicts:
xonstat/__init__.py
xonstat/templates/player_game_index.mako
xonstat/views/__init__.py
xonstat/views/helpers.py
xonstat/views/player.py

8 years agoAdd request verification parameter in the dev INI.
antzucaro [Fri, 4 Jan 2013 19:14:55 +0000 (14:14 -0500)]
Add request verification parameter in the dev INI.

This was added to the production.ini file without going in here
first. It controls whether or not to verify requests using the
d0_blind_id library provided by Xonotic (not packaged in this
project).

8 years ago404 when hashkey is not found.
Ant Zucaro [Sun, 30 Dec 2012 21:27:28 +0000 (16:27 -0500)]
404 when hashkey is not found.

8 years agoDo not send top-level elo/rank/pct.
Ant Zucaro [Sun, 30 Dec 2012 21:26:58 +0000 (16:26 -0500)]
Do not send top-level elo/rank/pct.

8 years agoAdd a plain text hashkey view for menu integration.
antzucaro [Sun, 30 Dec 2012 16:40:55 +0000 (11:40 -0500)]
Add a plain text hashkey view for menu integration.

This adds a plain text response view at the URL /player/<hashkey>,
where hashkey is the idfp of a given player. The response is quite
lengthy and won't be specified in this message, but suffice to say
that the response roughly corresponds to the player_info JSON view
currently at /player/<player_id>.json.

8 years agoMake the player game index Elo arrows clickable.
Ant Zucaro [Mon, 24 Dec 2012 18:07:09 +0000 (13:07 -0500)]
Make the player game index Elo arrows clickable.

8 years agoWhoops, add the game finder template!
Ant Zucaro [Mon, 24 Dec 2012 17:55:16 +0000 (12:55 -0500)]
Whoops, add the game finder template!

8 years agoAdd game finder links to the "info" views.
Ant Zucaro [Mon, 24 Dec 2012 15:09:35 +0000 (10:09 -0500)]
Add game finder links to the "info" views.

8 years agoAdd a basic game finder view at the /gamefinder URL.
Ant Zucaro [Mon, 24 Dec 2012 14:38:34 +0000 (09:38 -0500)]
Add a basic game finder view at the /gamefinder URL.

The game finder view is intended to be a better advanced search.
We'll see how it works out, but for now at least I can use this
view to show more of the "recent games" tables for each entity.

8 years agoAdd a __repr__ to RecentGames for easy debugging.
Ant Zucaro [Sun, 23 Dec 2012 17:43:26 +0000 (12:43 -0500)]
Add a __repr__ to RecentGames for easy debugging.

8 years agoAdd a new named argument for the ini-file to be used
Jan Behrens [Sun, 23 Dec 2012 14:14:33 +0000 (15:14 +0100)]
Add a new named argument for the ini-file to be used
(Usage: gen_badges.py [options] <ini-file>)

8 years agoAdd comment to the get_ranks function.
Ant Zucaro [Sun, 23 Dec 2012 13:49:34 +0000 (08:49 -0500)]
Add comment to the get_ranks function.

8 years agoRefactor the "top <blah>" tables on the front page, cache them.
Ant Zucaro [Sat, 22 Dec 2012 21:57:46 +0000 (16:57 -0500)]
Refactor the "top <blah>" tables on the front page, cache them.

The main_index view was getting a little long, so I factored out
the "top <blah>" data queries into separate functions. I cached
those functions under an hourly term while I was at it.

8 years agoSimplify the rank table calculations. Woohoo, negative LOC!
Ant Zucaro [Sat, 22 Dec 2012 20:59:17 +0000 (15:59 -0500)]
Simplify the rank table calculations. Woohoo, negative LOC!

Before the main view was running three separate, similar queries
to grab the rank data for the three game types shown on the page.
This was factored out into a separate function that can be called
and cached (currently hourly_term). Also if no ranks are available,
don't show tables filled with '-' characters, but rather an
informative message instead.