]> de.git.xonotic.org Git - xonotic/xonstat.git/log
xonotic/xonstat.git
11 years agorefactored views in preparation for json output
nyov [Wed, 16 May 2012 22:55:51 +0000 (00:55 +0200)]
refactored views in preparation for json output

11 years agoMerge https://github.com/nyov/xonstat into nyov-header
Ant Zucaro [Wed, 16 May 2012 23:39:44 +0000 (19:39 -0400)]
Merge https://github.com/nyov/xonstat into nyov-header

11 years agoPlayer_game_index needs to use GET too.
Ant Zucaro [Wed, 16 May 2012 23:35:16 +0000 (19:35 -0400)]
Player_game_index needs to use GET too.

I missed updating player_game_index to use GET params. Thanks
asyyy and nyov for reporting and fixing, respectively!

11 years agoAdd initial support for JSON on map_index view.
Ant Zucaro [Wed, 16 May 2012 02:37:38 +0000 (22:37 -0400)]
Add initial support for JSON on map_index view.

This commit adds initial JSON support to the map_index view.
I am giving each model class a to_dict function that returns
a select number of its instance variables back in the form of
a dictionary, which can then be returned directly by a JSON
renderer. I'm not sure if this is the right way to go, but
it works for now.

I've also ripped out the main "data-calling" piece of each
view callable into a separate function so that the JSON-
enabled view callable can use it. The non-JSON one just
returns the result of that function, while the JSON one
massages the data to be able to make it fit better for
API-like consumption.

11 years agomake README more readable in terminal
nyov [Tue, 15 May 2012 17:00:39 +0000 (19:00 +0200)]
make README more readable in terminal

11 years agoMerge remote-tracking branch 'antzucaro/master'
nyov [Tue, 15 May 2012 16:02:27 +0000 (18:02 +0200)]
Merge remote-tracking branch 'antzucaro/master'

11 years agoRemove _paged views.
Ant Zucaro [Tue, 15 May 2012 10:47:16 +0000 (06:47 -0400)]
Remove _paged views.

We no longer need separate _paged views when using 'page' as a
GET parameter. It is just appended to the URl now, as opposed
to being a part of it.

11 years agoConvert rank_index to use page as GET too.
Ant Zucaro [Tue, 15 May 2012 10:46:54 +0000 (06:46 -0400)]
Convert rank_index to use page as GET too.

11 years agoMake pagination a GET parameter, not part of the URL.
Ant Zucaro [Mon, 14 May 2012 20:55:51 +0000 (16:55 -0400)]
Make pagination a GET parameter, not part of the URL.

It was not the best idea to add the 'page' displayed to be an actual
part of the URL. It should be a GET parameter instead, which jives
a little better with my understanding of REST-like resources. This
changes all paginated views to use a GET parameter and also limits
results returned to 10 per page for performance and viewability
reasons.

11 years agoRemove debug statement.
Ant Zucaro [Mon, 14 May 2012 17:18:28 +0000 (13:18 -0400)]
Remove debug statement.

11 years agoDo not die if missing revision metadata.
Ant Zucaro [Mon, 14 May 2012 16:55:49 +0000 (12:55 -0400)]
Do not die if missing revision metadata.

The Xonotic revision metadata comes as a part of the 'R'
line in the POST. Although it isn't required, server was dying
when it was missing. I made it optional now, defaulting
that field to "unkown" when it isn't present. Note: DTG
brought this issue into the light, as they custom compile
their Xonotic, and they omit #ifdef'ing WARPZONE, which
is what prints the 'R' line in stats.

11 years agoRemove 404 on include, remove doubled double quote.
Ant Zucaro [Sun, 6 May 2012 22:41:40 +0000 (18:41 -0400)]
Remove 404 on include, remove doubled double quote.

11 years agoMerge remote-tracking branch 'antzucaro/master'
nyov [Sun, 6 May 2012 02:23:21 +0000 (04:23 +0200)]
Merge remote-tracking branch 'antzucaro/master'

11 years agoclean dangling commit on actually merged branch
nyov [Sun, 6 May 2012 02:17:24 +0000 (04:17 +0200)]
clean dangling commit on actually merged branch

Merge remote-tracking branch 'dmazary/patch-3'

11 years agoTurn off dots, enable hover for average.
Ant Zucaro [Sat, 5 May 2012 18:37:23 +0000 (14:37 -0400)]
Turn off dots, enable hover for average.

11 years agoadapted z's search engine hints and header
nyov [Sat, 5 May 2012 16:36:25 +0000 (18:36 +0200)]
adapted z's search engine hints and header

forgot actually committing the changes. fail.

11 years agoadapted z's search engine hints and header
nyov [Sat, 5 May 2012 16:18:08 +0000 (18:18 +0200)]
adapted z's search engine hints and header

Merge remote-tracking branch 'z/master'

Conflicts:
xonstat/static/css/style.css
xonstat/templates/base.mako

11 years agoModified Readme
nyov [Sat, 5 May 2012 15:12:18 +0000 (17:12 +0200)]
Modified Readme

11 years agoAdd more goodies to the accuracy graph. Tooltips, a legend, and links to the games...
Ant Zucaro [Sat, 5 May 2012 13:37:50 +0000 (09:37 -0400)]
Add more goodies to the accuracy graph. Tooltips, a legend, and links to the games on the x-axis.

11 years agoAdd labels to the graph.
Ant Zucaro [Sat, 5 May 2012 11:57:28 +0000 (07:57 -0400)]
Add labels to the graph.

11 years agoPrevent rollup animation from being seen on game info page.
Ant Zucaro [Thu, 3 May 2012 09:59:26 +0000 (05:59 -0400)]
Prevent rollup animation from being seen on game info page.

11 years agoMake the background black, as the transparency was not working as well in IE and...
Ant Zucaro [Thu, 3 May 2012 09:45:54 +0000 (05:45 -0400)]
Make the background black, as the transparency was not working as well in IE and Chrome. Also add cursor to the weapons below the accuracy graph.

11 years agoFix player_info template for missing player.
Ant Zucaro [Mon, 30 Apr 2012 10:40:37 +0000 (06:40 -0400)]
Fix player_info template for missing player.

11 years agoAdd a toggle-able accuracy selector to the player info page.
Ant Zucaro [Mon, 30 Apr 2012 01:47:58 +0000 (21:47 -0400)]
Add a toggle-able accuracy selector to the player info page.

You can choose which weapon to show accuracy stats for. The only weapons shown are those that the player has used in 5 or more games in the past 90 days. This is still a work in progress, as I don't have labels or nice hovers for the datapoints. :(

11 years agoInitial version of ajax-updating of the accuracy graph.
Ant Zucaro [Sun, 29 Apr 2012 16:10:14 +0000 (12:10 -0400)]
Initial version of ajax-updating of the accuracy graph.

The accuracy view needs to be changed to accommodate clicking on weapons where not enough data is supplied. Right now it results in a JS error that halts all further updates to the graph.

11 years agoAjaxify the accuracy graph.
Ant Zucaro [Sat, 28 Apr 2012 22:23:33 +0000 (18:23 -0400)]
Ajaxify the accuracy graph.

11 years agoDon't throw an error if the number of duel ranks found is < 10.
antzucaro [Sat, 28 Apr 2012 12:30:30 +0000 (08:30 -0400)]
Don't throw an error if the number of duel ranks found is < 10.

I was using '-' as a filler in such cases, and was populating four values into a tuple. The template expected three, so in situations when I had to fall back on the filler values, I was providing one too many, leading to 'too many values to unpack' upon loading up the main page.

11 years agoClean up the graph, make a new JSON view for accuracy data.
Ant Zucaro [Wed, 25 Apr 2012 01:10:49 +0000 (21:10 -0400)]
Clean up the graph, make a new JSON view for accuracy data.

11 years agoRemove jinja2 dependency in requires, add PasteScript.
Ant Zucaro [Tue, 24 Apr 2012 23:13:39 +0000 (19:13 -0400)]
Remove jinja2 dependency in requires, add PasteScript.

11 years agoAdd issues and FAQ links.
Ant Zucaro [Sat, 21 Apr 2012 15:11:05 +0000 (11:11 -0400)]
Add issues and FAQ links.

11 years agoThe latest games need to be at the end of the array, thus no desc.
Ant Zucaro [Sat, 21 Apr 2012 15:04:51 +0000 (11:04 -0400)]
The latest games need to be at the end of the array, thus no desc.

11 years agoNeeded to use httpexceptions here. That class does not exist in exceptions.
Ant Zucaro [Sat, 21 Apr 2012 15:01:26 +0000 (11:01 -0400)]
Needed to use httpexceptions here. That class does not exist in exceptions.

11 years agoRemove jinja2 dependency.
Ant Zucaro [Sat, 21 Apr 2012 14:57:49 +0000 (10:57 -0400)]
Remove jinja2 dependency.

11 years agoUse utcnow() as the basis for calculating fuzzy date strings.
Ant Zucaro [Sat, 21 Apr 2012 14:22:57 +0000 (10:22 -0400)]
Use utcnow() as the basis for calculating fuzzy date strings.

12 years agoWhoops, left in a debugging statement.
Ant Zucaro [Thu, 19 Apr 2012 09:34:38 +0000 (05:34 -0400)]
Whoops, left in a debugging statement.

12 years agoAdds an accuracy graph and removes the overall accuracy table.
Ant Zucaro [Tue, 17 Apr 2012 00:39:39 +0000 (20:39 -0400)]
Adds an accuracy graph and removes the overall accuracy table.

In retrospect the accuracy/damage table was a cop-out. It doesn't really show anything useful, it was just easy to display query-wise. Meanwhile I've been told time and time again that nex accuracy is the only thing that people are truly looking at as a measure of their accuracy, so that is what this commit does in graphical form. Other useful things will come later, but likely not in a tabular format again.

12 years agoAdd some kill ratio and win percentage, clean up recent games.
Ant Zucaro [Sun, 15 Apr 2012 11:42:11 +0000 (07:42 -0400)]
Add some kill ratio and win percentage, clean up recent games.

Added the kill ratio and win percentage to the first section along with a breakdown of how I got them. Also cleaned up the recent games section so it looks more like what is on all of the other "leaderboard" pages, which people should expect. I removed the overall stats section altogether, as 99% of the time people are looking after what is currently provided (e.g. flag carrier kills = rather unimportant in the grand scheme of things).

12 years agoAdd Google Analytics support.
Ant Zucaro [Tue, 27 Mar 2012 21:23:53 +0000 (17:23 -0400)]
Add Google Analytics support.

Stats has been operational for almost six months now, yet I don't have a clue of how many people are using/visiting the site on a daily basis. It's time to fix that! GA support will be tracked up to the xonstat address at gmail.com.

12 years agoHuge performance boost for the DB queries on the home page.
Ant Zucaro [Tue, 20 Mar 2012 11:07:23 +0000 (07:07 -0400)]
Huge performance boost for the DB queries on the home page.

The queries on the home page weren't bound by dates (which are indexed) or limited by the number of rows returned (despite the tables being a fixed size there). Adding these two filters on each of the queries makes the home page fly. The dates are done w/ a BETWEEN clause, while the limit on the queries is done w/ a normal LIMIT statement. The result takes the page from 3.5s average load time to about 400ms. :D :D :D

12 years agoReduce one operation in hex_repl (util.py) via dmazary.
Ant Zucaro [Mon, 19 Mar 2012 02:53:17 +0000 (22:53 -0400)]
Reduce one operation in hex_repl (util.py) via dmazary.

12 years agoReduce the operations in hex_repl for a small performance boost.
David Mazary [Sun, 18 Mar 2012 21:54:19 +0000 (18:54 -0300)]
Reduce the operations in hex_repl for a small performance boost.

12 years agoCap RGB value darkness by first converting to HSL, then applying threshold.
Ant Zucaro [Sun, 18 Mar 2012 20:07:03 +0000 (16:07 -0400)]
Cap RGB value darkness by first converting to HSL, then applying threshold.

RGB values that were too dark to read against a black background are now viewable. This is done by converting the RGB values (from the hex values provided) to HSL, then moving any L (lightness) values beyond a certain threshold back. Finally they are converted back to RGB for display. In practice all this really does is to lighten the dark colors without changing their hue or saturation values (e.g. black becomes gray).

Thanks go to dmazary for helping me with this and working through the various bugs I found. Thanks, Dave!

12 years agoMerge branch 'patch-3' of git://github.com/dmazary/XonStat
Ant Zucaro [Sun, 18 Mar 2012 19:46:15 +0000 (15:46 -0400)]
Merge branch 'patch-3' of git://github.com/dmazary/XonStat

12 years agoround and int rgb css color values
David Mazary [Sun, 18 Mar 2012 19:40:18 +0000 (16:40 -0300)]
round and int rgb css color values

12 years agoMerge branch 'patch-3' of git://github.com/dmazary/XonStat
Ant Zucaro [Sun, 18 Mar 2012 19:37:57 +0000 (15:37 -0400)]
Merge branch 'patch-3' of git://github.com/dmazary/XonStat

12 years agolist comprehension instead of map.
David Mazary [Sun, 18 Mar 2012 19:29:20 +0000 (16:29 -0300)]
list comprehension instead of map.

12 years agoMerge branch 'patch-3' of git://github.com/dmazary/XonStat
Ant Zucaro [Sun, 18 Mar 2012 19:26:16 +0000 (15:26 -0400)]
Merge branch 'patch-3' of git://github.com/dmazary/XonStat

12 years agonormalize from 255 to 1 correctly :)
David Mazary [Sun, 18 Mar 2012 19:22:29 +0000 (16:22 -0300)]
normalize from 255 to 1 correctly :)

12 years agoMerge branch 'patch-3' of git://github.com/dmazary/XonStat
Ant Zucaro [Sun, 18 Mar 2012 19:18:23 +0000 (15:18 -0400)]
Merge branch 'patch-3' of git://github.com/dmazary/XonStat

12 years agoadjust color scales between css and Python's colorsys
David Mazary [Sun, 18 Mar 2012 19:07:20 +0000 (16:07 -0300)]
adjust color scales between css and Python's colorsys

12 years agoMerge pull request #7 from dmazary/patch-3
antzucaro [Sun, 18 Mar 2012 18:39:16 +0000 (11:39 -0700)]
Merge pull request #7 from dmazary/patch-3

Idea about classifying text as light or dark so css styling could increa...

12 years agofix typos
David Mazary [Sun, 18 Mar 2012 18:38:28 +0000 (15:38 -0300)]
fix typos

12 years agoChange font color instead of using a css class.
David Mazary [Sun, 18 Mar 2012 18:34:35 +0000 (15:34 -0300)]
Change font color instead of using a css class.

12 years agoIdea about classifying text as light or dark so css styling could increase contrast...
David Mazary [Fri, 16 Mar 2012 15:14:36 +0000 (12:14 -0300)]
Idea about classifying text as light or dark so css styling could increase contrast for dark text. This looks interesting: http://css-tricks.com/adding-stroke-to-web-text/ Maybe using that trick with an electric-blue text outline for dark text.

12 years agoFix second page links on search queries.
Ant Zucaro [Fri, 16 Mar 2012 01:17:13 +0000 (21:17 -0400)]
Fix second page links on search queries.

12 years agoDon't show the navigation links if we're on the first and only page!
Ant Zucaro [Fri, 16 Mar 2012 00:25:51 +0000 (20:25 -0400)]
Don't show the navigation links if we're on the first and only page!

12 years agoAdd an itemized breakdown of the games played by a player.
Ant Zucaro [Thu, 15 Mar 2012 11:16:08 +0000 (07:16 -0400)]
Add an itemized breakdown of the games played by a player.

This is so we can see how many of each type of game type that the player has played. It will look like <total games played> (<number of games played> <game type cd>).

12 years agoMerge pull request #6 from dmazary/patch-2
antzucaro [Thu, 15 Mar 2012 01:16:22 +0000 (18:16 -0700)]
Merge pull request #6 from dmazary/patch-2

use cgi.escape to escape &,<,>

12 years agouse cgi.escape to escape &,<,>
David Mazary [Thu, 15 Mar 2012 01:15:04 +0000 (22:15 -0300)]
use cgi.escape to escape &,<,>

12 years agoHonor cl_allow_uid2name 0 when cl_allow_uidtracking is 1.
Ant Zucaro [Wed, 14 Mar 2012 02:19:59 +0000 (22:19 -0400)]
Honor cl_allow_uid2name 0 when cl_allow_uidtracking is 1.

In an attempt to display better nick information I've overwritten the provided nick (in this case none) w/ what was on the player record. This is wrong - if uid2name is 0, thus leading to no nick provided, that means I should show "Anonymous Player". This ends up being a little silly when uidtracking is 1, because a person can just click on the "Anonymous Player" link to see who was actually playing :D.

12 years agoMerge pull request #5 from dmazary/patch-1
antzucaro [Wed, 14 Mar 2012 01:27:22 +0000 (18:27 -0700)]
Merge pull request #5 from dmazary/patch-1

More Pythonic check for qfont character range :)

12 years agoShow player elo on the player info page.
Ant Zucaro [Sat, 10 Mar 2012 13:00:18 +0000 (08:00 -0500)]
Show player elo on the player info page.

12 years agoTurn on CA support, testing to commence this weekend!
Ant Zucaro [Fri, 9 Mar 2012 22:34:37 +0000 (17:34 -0500)]
Turn on CA support, testing to commence this weekend!

12 years agoIgnore deactivated players in search and in player views.
Ant Zucaro [Thu, 1 Mar 2012 11:37:26 +0000 (06:37 -0500)]
Ignore deactivated players in search and in player views.

12 years agoFix "more games played by player <blah> page.
Ant Zucaro [Mon, 20 Feb 2012 16:34:09 +0000 (11:34 -0500)]
Fix "more games played by player <blah> page.

12 years agoShow navigatoin links when on the last page too.
Ant Zucaro [Mon, 20 Feb 2012 15:30:55 +0000 (10:30 -0500)]
Show navigatoin links when on the last page too.

12 years agoFix the font rendering on Win7+Chrome.
Ant Zucaro [Mon, 20 Feb 2012 15:17:58 +0000 (10:17 -0500)]
Fix the font rendering on Win7+Chrome.

12 years agoFilter the nicks properly.
Ant Zucaro [Fri, 17 Feb 2012 02:23:12 +0000 (21:23 -0500)]
Filter the nicks properly.

12 years agoFix the ordering of things and the view game links.
Ant Zucaro [Wed, 8 Feb 2012 02:11:48 +0000 (21:11 -0500)]
Fix the ordering of things and the view game links.

12 years agoRemove quick links to accuracy info.
Ant Zucaro [Wed, 8 Feb 2012 02:01:00 +0000 (21:01 -0500)]
Remove quick links to accuracy info.

12 years agoAdd advanced search to the top nav.
Ant Zucaro [Wed, 8 Feb 2012 01:52:41 +0000 (20:52 -0500)]
Add advanced search to the top nav.

12 years agoMake accuracy information expandable.
Ant Zucaro [Wed, 8 Feb 2012 01:43:03 +0000 (20:43 -0500)]
Make accuracy information expandable.

12 years agoGrifify the game info page.
Ant Zucaro [Wed, 8 Feb 2012 01:16:04 +0000 (20:16 -0500)]
Grifify the game info page.

12 years agoMake the scoreboards look more like they used to.
Ant Zucaro [Mon, 6 Feb 2012 03:06:18 +0000 (22:06 -0500)]
Make the scoreboards look more like they used to.

12 years agoCenter the footer.
Ant Zucaro [Mon, 6 Feb 2012 01:58:57 +0000 (20:58 -0500)]
Center the footer.

12 years agoFix right-hand side of the border for Samual.
Ant Zucaro [Mon, 6 Feb 2012 01:45:49 +0000 (20:45 -0500)]
Fix right-hand side of the border for Samual.

12 years agoAdd real download link location.
Ant Zucaro [Sun, 5 Feb 2012 22:48:02 +0000 (17:48 -0500)]
Add real download link location.

12 years agoIntegrate searches coming in from the navbar.
Ant Zucaro [Sun, 5 Feb 2012 22:46:35 +0000 (17:46 -0500)]
Integrate searches coming in from the navbar.

12 years agoSet destination for nav search form. Use search type for the input.
Ant Zucaro [Sun, 5 Feb 2012 22:23:49 +0000 (17:23 -0500)]
Set destination for nav search form. Use search type for the input.

12 years agoMore Pythonic check for qfont character range :)
David Mazary [Sun, 5 Feb 2012 17:02:31 +0000 (12:02 -0500)]
More Pythonic check for qfont character range :)
I did not know it has such nice syntax!

12 years agoAdd the search bar on the right of the nav bar.
Ant Zucaro [Sun, 5 Feb 2012 14:40:11 +0000 (09:40 -0500)]
Add the search bar on the right of the nav bar.

12 years agoAdd hero unit to main page only.
Ant Zucaro [Sun, 5 Feb 2012 05:50:42 +0000 (00:50 -0500)]
Add hero unit to main page only.

12 years agoGridify the map info page.
Ant Zucaro [Sun, 5 Feb 2012 05:13:58 +0000 (00:13 -0500)]
Gridify the map info page.

12 years agoGridify the player and server info pages.
Ant Zucaro [Sun, 5 Feb 2012 02:27:58 +0000 (21:27 -0500)]
Gridify the player and server info pages.

12 years agoWhoops, add the png and svg versions of the xon icon.
Ant Zucaro [Sun, 5 Feb 2012 02:22:19 +0000 (21:22 -0500)]
Whoops, add the png and svg versions of the xon icon.

12 years agoAdd the proper styling to the accuracy table.
Ant Zucaro [Sun, 5 Feb 2012 02:19:01 +0000 (21:19 -0500)]
Add the proper styling to the accuracy table.

12 years agoGridify the index pages.
Ant Zucaro [Sun, 5 Feb 2012 02:17:46 +0000 (21:17 -0500)]
Gridify the index pages.

12 years agoUpdate styles.
Ant Zucaro [Sun, 5 Feb 2012 02:16:40 +0000 (21:16 -0500)]
Update styles.

12 years agoUpdate fonts.
Ant Zucaro [Sun, 5 Feb 2012 02:14:54 +0000 (21:14 -0500)]
Update fonts.

12 years agoAdd top navigation stub.
Ant Zucaro [Sun, 5 Feb 2012 02:13:31 +0000 (21:13 -0500)]
Add top navigation stub.

12 years agoRemove header from recent games column.
Ant Zucaro [Sat, 4 Feb 2012 17:13:07 +0000 (12:13 -0500)]
Remove header from recent games column.

12 years agoIntegrate navigation mako file and titles.
Ant Zucaro [Fri, 3 Feb 2012 02:55:42 +0000 (21:55 -0500)]
Integrate navigation mako file and titles.

12 years agoStarted laying out the new grid framework.
Ant Zucaro [Thu, 2 Feb 2012 21:33:25 +0000 (16:33 -0500)]
Started laying out the new grid framework.

12 years agoUse PlayerRank instead of PlayerElo when displaying ranks.
Ant Zucaro [Sat, 28 Jan 2012 04:36:40 +0000 (23:36 -0500)]
Use PlayerRank instead of PlayerElo when displaying ranks.

12 years agoAdd more links to the rankings.
Ant Zucaro [Sun, 22 Jan 2012 17:50:15 +0000 (12:50 -0500)]
Add more links to the rankings.

12 years agoDo not use an explicit schema
Ant Zucaro [Sun, 22 Jan 2012 17:49:43 +0000 (12:49 -0500)]
Do not use an explicit schema

12 years agoAdd player_ranks to the mix - it is a batch table intended to represent the latest...
Ant Zucaro [Sun, 22 Jan 2012 04:11:52 +0000 (23:11 -0500)]
Add player_ranks to the mix - it is a batch table intended to represent the latest rankings at any given point in time. Ideally they would be updated daily.

12 years agoSimplify navlinks. Woohoo!
Ant Zucaro [Sun, 22 Jan 2012 02:56:09 +0000 (21:56 -0500)]
Simplify navlinks. Woohoo!

12 years agoSet a minimum # of games required to show in ranks.
Ant Zucaro [Sat, 21 Jan 2012 15:27:45 +0000 (10:27 -0500)]
Set a minimum # of games required to show in ranks.

12 years agoRemove "more" links for now. Need to fix pagination w/ multiple params first.
Ant Zucaro [Fri, 20 Jan 2012 03:10:36 +0000 (22:10 -0500)]
Remove "more" links for now. Need to fix pagination w/ multiple params first.