]> git.rm.cloudns.org Git - xonotic/xonstat.git/log
xonotic/xonstat.git
12 years agoFixed stupid typo in the badges generator
Jan D. Behrens [Sun, 16 Sep 2012 20:22:26 +0000 (22:22 +0200)]
Fixed stupid typo in the badges generator

12 years agoMinor improvements to the badges generator:
Jan D. Behrens [Fri, 14 Sep 2012 20:03:03 +0000 (22:03 +0200)]
Minor improvements to the badges generator:
- Fixed mistake int the ^6 color code (leading to wrong colors)
- Extended the playernick down-scaling for too wide nicks (now max. down-scaling is based on fontsize)

12 years agoAdd localized time support (on hover).
Ant Zucaro [Tue, 11 Sep 2012 02:01:54 +0000 (22:01 -0400)]
Add localized time support (on hover).

Without Javascript people will see the UTC time. With Javascript
all of those UTC times will be changed to localtime (accounting
for DST) via the epoch time of the object.

12 years agoAdd methods to return the time (create or start) in epoch seconds.
Ant Zucaro [Sun, 9 Sep 2012 21:02:52 +0000 (17:02 -0400)]
Add methods to return the time (create or start) in epoch seconds.

12 years agoAdd a default alivetime of 0, better storage of stripped_nicks.
Ant Zucaro [Sat, 8 Sep 2012 19:16:59 +0000 (15:16 -0400)]
Add a default alivetime of 0, better storage of stripped_nicks.

Default the alivetime to a timedelta of 0 seconds, and store
the qfont-decoded, color-stripped nicks as the stripped_nick.

12 years agoHandle the halving of weapon stats a little better.
Ant Zucaro [Sat, 8 Sep 2012 18:59:00 +0000 (14:59 -0400)]
Handle the halving of weapon stats a little better.

Default PlayerWeaponStat rows to all 0 to protect for missing
accuracy data. Also halve all of the pwstat members at once
instead of checking on each loop.

12 years agoUse a dummy session variable.
Ant Zucaro [Sat, 8 Sep 2012 18:37:18 +0000 (14:37 -0400)]
Use a dummy session variable.

A little while ago I moved down the creation of the actual
DBSession() below the precondition checks to avoid unnecessary
rollback transactions. What I didn't do was check if the session
existed before using it, so when precondition checks failed I was
calling a variable that wasn't defined yet (another exception).
This adds a dummy session variable that I can check before rolling
back, avoiding more exceptions.

12 years agoHalve the weapon stats if the POST request is from version 1.
Ant Zucaro [Fri, 7 Sep 2012 02:41:45 +0000 (22:41 -0400)]
Halve the weapon stats if the POST request is from version 1.

Version 1 of the weapon stats submissions sent double the weapon
stats. This means that all hit, fired, max, actual, and frag data
were 2x what they should be. The fix is to check for version 1
requests and halve them accordingly. Versions >1 should not have
this problem.

12 years agoAdd IE fallback for the main content section (all black).
Ant Zucaro [Thu, 6 Sep 2012 01:08:31 +0000 (21:08 -0400)]
Add IE fallback for the main content section (all black).

12 years agoAdd a text-shadow and more margin to the bottom of the headline.
Ant Zucaro [Thu, 6 Sep 2012 00:59:21 +0000 (20:59 -0400)]
Add a text-shadow and more margin to the bottom of the headline.

12 years agoFix broken firefox. Damn you, firefox!
Ant Zucaro [Wed, 5 Sep 2012 03:00:08 +0000 (23:00 -0400)]
Fix broken firefox. Damn you, firefox!

The latest firefox update broke the web borders. This is a
workaround. It compresses the main header by removing the
"get the game" button (not really needed). This change also
swaps out the backgrounds to match xonotic.org and a move of
the title accordingly. All in all I think it looks pretty decent!

12 years agoMerge branch 'badges'
Ant Zucaro [Wed, 5 Sep 2012 02:26:29 +0000 (22:26 -0400)]
Merge branch 'badges'

12 years agoUse relative time everywhere, but add hover with absolute time.
Ant Zucaro [Sun, 2 Sep 2012 17:08:36 +0000 (13:08 -0400)]
Use relative time everywhere, but add hover with absolute time.

Use "fuzzy" dates everywhere (e.g. "an hour ago"), but allow for
a hover showing the absolute UTC time when needed. This is done
with a span and a title attribute.

12 years agoFixed display of some characters in playernick (e.g. . : |)
Jan D. Behrens [Thu, 30 Aug 2012 11:38:32 +0000 (13:38 +0200)]
Fixed display of some characters in playernick (e.g. . : |)

12 years agoFixed gametype display in "minimal" skin
Jan D. Behrens [Thu, 30 Aug 2012 11:15:29 +0000 (13:15 +0200)]
Fixed gametype display in "minimal" skin

12 years agoMore design work on the two badge themes; also improved skin support
Jan D. Behrens [Thu, 30 Aug 2012 10:53:34 +0000 (12:53 +0200)]
More design work on the two badge themes; also improved skin support
- More parameters that can be changed by skins
- Minimal skin: fixed gametype alignment, retuned coloring to be more modest, some redesign
- Classic skin: gametypes are now aligned to the center if less than max. gameteypes are shown, re-introduced the "no stats" stamp, also some redesign
- Some code cleanup

12 years agoMore work on classic and minimal themes; now both include a fancy Xonotic logo!
Jan D. Behrens [Wed, 29 Aug 2012 21:03:11 +0000 (23:03 +0200)]
More work on classic and minimal themes; now both include a fancy Xonotic logo!

12 years agoMore fine-tuning to the "minimal" skin; added options to enable/disable centering...
Jan D. Behrens [Wed, 29 Aug 2012 16:19:33 +0000 (18:19 +0200)]
More fine-tuning to the "minimal" skin; added options to enable/disable centering of some elements

12 years agoA collection of smaller improvements to the badges generator
Jan D. Behrens [Wed, 29 Aug 2012 14:39:59 +0000 (16:39 +0200)]
A collection of smaller improvements to the badges generator
- Fixed a bug in the commandline parser
- Finally fixed the "win/loss" bug (new query, also a bit faster)
- Split up "render" and "data" parts of the code (skin.py & playerdata.py)
- Reworked overlay images for classic/minimal skin (source .xcf files included)

12 years agoAdded multiple skin support and better commandline parsing
Jan D. Behrens [Wed, 29 Aug 2012 10:58:31 +0000 (12:58 +0200)]
Added multiple skin support and better commandline parsing
- Skins other than "classic" will be put into a subdir in the output directory (e.g. output/minimal/###.png)
- By default, "classic" and "minimal" badges are created for all players that were active in the last 6 hours
- A skin list can be passed to the program for testing (e.g. "gen_badges.py classic archer")
- The "-force" parameter enforces an update of all badges by setting delta to 2^24 hours
- The "-test" parameter limits the number of players to be considered to 200 (used for testing)

12 years agoFixed crash when no active players were found
Jan D. Behrens [Wed, 29 Aug 2012 10:27:50 +0000 (12:27 +0200)]
Fixed crash when no active players were found

12 years agoAdd a cutoff date.
Ant Zucaro [Wed, 29 Aug 2012 02:01:12 +0000 (22:01 -0400)]
Add a cutoff date.

The cutoff date is the date before which games are not considered.
In other words, a player must play within the cutoff date range in
order to have his or her badge regenerated. This is to prevent
generating images for every single player, every single run.

12 years agoHotfix - last commit introduced a bug where only the last defined skin could be used
Jan D. Behrens [Tue, 28 Aug 2012 20:27:08 +0000 (22:27 +0200)]
Hotfix - last commit introduced a bug where only the last defined skin could be used

12 years agoAdded first version of "minimal" skin
Jan D. Behrens [Tue, 28 Aug 2012 19:52:35 +0000 (21:52 +0200)]
Added first version of "minimal" skin
- NOTE: Transparency does not work fully as expected (can't use a transparent bg image, only fillcolor+overlay)

12 years agoImproved PNG output for badges (now using zlib compression)
Jan D. Behrens [Tue, 28 Aug 2012 17:57:43 +0000 (19:57 +0200)]
Improved PNG output for badges (now using zlib compression)

12 years agoAdded rudimentary skin support to badges (also moved large parts of code outside...
Jan D. Behrens [Tue, 28 Aug 2012 12:41:22 +0000 (14:41 +0200)]
Added rudimentary skin support to badges (also moved large parts of code outside the main program)
- To select skin, run gen_badges.py with the skin name as argument (i.e. "classic" or "archer").

12 years agoAdded support for transparent background in badges (bg=-1)
Jan D. Behrens [Mon, 27 Aug 2012 22:52:58 +0000 (00:52 +0200)]
Added support for transparent background in badges (bg=-1)

12 years agoImproved handling of whitespace in playernicks
Jan D. Behrens [Mon, 27 Aug 2012 22:38:30 +0000 (00:38 +0200)]
Improved handling of whitespace in playernicks

12 years agoMerge branch 'master' into badges
Jan D. Behrens [Mon, 27 Aug 2012 22:35:34 +0000 (00:35 +0200)]
Merge branch 'master' into badges

Conflicts:
xonstat/batch/badges/gen_badges.py

12 years agoFixed bug in "wins" query
Jan D. Behrens [Mon, 27 Aug 2012 22:16:18 +0000 (00:16 +0200)]
Fixed bug in "wins" query

12 years agoFixed some problems with playernicks in gen_badges
Jan D. Behrens [Mon, 27 Aug 2012 21:45:25 +0000 (23:45 +0200)]
Fixed some problems with playernicks in gen_badges

12 years agoCan't calculate the k:d ratio if d (deaths) is None.
Ant Zucaro [Sun, 26 Aug 2012 04:15:36 +0000 (00:15 -0400)]
Can't calculate the k:d ratio if d (deaths) is None.

12 years agoAdded 1st version of Archer's background; some finetuning
Jan D. Behrens [Sat, 25 Aug 2012 17:46:09 +0000 (19:46 +0200)]
Added 1st version of Archer's background; some finetuning

12 years agoPython 2.6.x doesn't have total_seconds().
Ant Zucaro [Sat, 25 Aug 2012 12:55:11 +0000 (08:55 -0400)]
Python 2.6.x doesn't have total_seconds().

12 years agoAdd player badge batch job (via zykure).
Ant Zucaro [Sat, 25 Aug 2012 12:17:04 +0000 (08:17 -0400)]
Add player badge batch job (via zykure).

The player badge batch job uses cairo to generate a summary
image of the given player's statistics. It can be run
periodically to maintain the "freshness" of the data. The
tricky thing with this batch job is getting cairo working
within the virtualenv - one has to install it in the machine
and then symbolically link to the ENV. This is obviously not
ideal, but it does work.

Many thanks to zykure for this well-designed image!

12 years agoMore work on the badges generator
Jan D. Behrens [Sat, 25 Aug 2012 01:57:47 +0000 (03:57 +0200)]
More work on the badges generator
- Added overlay support
- Added additional backgrounds
- Cleaned up the code
- Removed obsolete files

12 years agoMore fine-tuning of the badges generator
Jan D. Behrens [Fri, 24 Aug 2012 15:07:40 +0000 (17:07 +0200)]
More fine-tuning of the badges generator

12 years agoFixed/improved some things in gen_badges.py (more colors, fixed playernick handling)
Jan D. Behrens [Thu, 23 Aug 2012 21:10:59 +0000 (23:10 +0200)]
Fixed/improved some things in gen_badges.py (more colors, fixed playernick handling)

12 years agoRe-implemented the badges generator, now it uses the cairo API for rendering.
Jan D. Behrens [Thu, 23 Aug 2012 20:01:04 +0000 (22:01 +0200)]
Re-implemented the badges generator, now it uses the cairo API for rendering.
Rendering one image takes about 0.2 sec, including the DB queries for each player.

12 years agoWait for precondition checks before beginning the DB transaction.
Ant Zucaro [Thu, 23 Aug 2012 11:40:51 +0000 (07:40 -0400)]
Wait for precondition checks before beginning the DB transaction.

SQLA's DBSession implicitly starts a PG transaction. When this
happens before the precondition checks (blank game, verified req, etc)
then an unneccesary transaction is started. Delay grabbing a new
DBSession until AFTER these checks are done prevents these useless
transactions from occurring. This means we should see little to
no ROLLBACK transactions in Munin once this is in place.

12 years agoUse score-scaling Elo for non-duels.
Ant Zucaro [Wed, 1 Aug 2012 11:52:19 +0000 (07:52 -0400)]
Use score-scaling Elo for non-duels.

Scale S according to the real scorefactor in non-duel games.
This eliminates the effects of people switching to the winning
or losing team at the very last second. This also avoids a
"winner take all" in DM mode, where most people would lose points.

Additionally, all players are compared to everyone else, not just
those on their own team. This makes it more fair anyway - no
averages are done over the opponent team only. You now have to
perform better overall to get more points.

12 years agoUse traditional (win-based) Elo instead of score-based.
Ant Zucaro [Wed, 25 Jul 2012 12:32:20 +0000 (08:32 -0400)]
Use traditional (win-based) Elo instead of score-based.

Using traditional Elo instead of score-based Elo eliminates a lot of
confusion and drama surrounding losing points when winning and
gaining points when losing. I think this is a better reflection of
what we're after - the highest ranking players have won the most.
This has an intended side-effect of encouraging ALL players to
play more, because even pros have no penalties by playing newer
players.

12 years agoWhoops, elo_delta in the wrong order.
Ant Zucaro [Sat, 21 Jul 2012 23:36:13 +0000 (19:36 -0400)]
Whoops, elo_delta in the wrong order.

12 years agoDon't dock Elo points if the player won.
Ant Zucaro [Sat, 21 Jul 2012 01:59:10 +0000 (21:59 -0400)]
Don't dock Elo points if the player won.

After much debate I've included this enhancement. It prevents
losing Elo points if you've won the game. While this makes the
algorithm not *true* Elo, it prevents the negative perception
in the community. People were turning off their tracking for
fear of losing Elo points even if they won, and this hopefully
will fix that situation.

12 years agoRemove +/- points display on scoreboard.
Ant Zucaro [Sat, 21 Jul 2012 00:58:02 +0000 (20:58 -0400)]
Remove +/- points display on scoreboard.

I've decided not to show the +/- elo_deltas on the scoreboard
because they are individual measures. They thus belong on a
given player's info page instead. The player_info view is the
future destination of this data (not implemented yet).

Also, I'm preventing duel matches from being processed as both
duel and dm matches. Duel really is a mode of its own, even if
Xonotic doesn't have a dedicated mode for it.

12 years agoRemove < 50 restriction.
Ant Zucaro [Sat, 7 Jul 2012 01:48:47 +0000 (21:48 -0400)]
Remove < 50 restriction.

12 years agoBasic support for batch processes.
Ant Zucaro [Sat, 7 Jul 2012 01:45:23 +0000 (21:45 -0400)]
Basic support for batch processes.

Badges is the first batch process supported. It basically
sets up the pyramid environment, then iterates over the
player base and generates static HTML files showing their
high-level stats. That static HTML is then converted into
a PNG for use in forum signatures. A bash wrapper is
needed to drive the whole process via cron.

12 years agoDon't die if no favorite map exists.
Ant Zucaro [Sat, 7 Jul 2012 01:43:28 +0000 (21:43 -0400)]
Don't die if no favorite map exists.

12 years agoAllow player view functions to be imported.
Ant Zucaro [Sat, 30 Jun 2012 10:49:07 +0000 (06:49 -0400)]
Allow player view functions to be imported.

Prefixing the real data functions with '_' prevents
them from being imported by outside applications.
At first I thought this was a feature, then I realized
that there is really no harm to exposing them if needed.
Such a need developed for player badges, so I'm exposing
the views here. More will follow.

12 years agoAdd elo delta tracking.
Ant Zucaro [Wed, 20 Jun 2012 14:17:10 +0000 (10:17 -0400)]
Add elo delta tracking.

An elo delta is the amount by which a player's elo goes up
or down per match. This is useful for tracking purposes
and competitions.

The decimal formatting here is a bit hacky, and I don't like it,
but Mako refuses to do a proper format string on a decimal.Decimal.
This is even thought on the interactive command line it works! Argh.

12 years agoDebug message when a duplicate game is submitted.
Ant Zucaro [Wed, 20 Jun 2012 13:06:58 +0000 (09:06 -0400)]
Debug message when a duplicate game is submitted.

12 years agoShow ranks on the player_info page.
Ant Zucaro [Mon, 18 Jun 2012 23:42:35 +0000 (19:42 -0400)]
Show ranks on the player_info page.

12 years agoChange the query group by, return dict instead of Map.
Ant Zucaro [Mon, 18 Jun 2012 00:35:04 +0000 (20:35 -0400)]
Change the query group by, return dict instead of Map.

12 years agoAdd favorite map support.
Ant Zucaro [Mon, 18 Jun 2012 00:10:20 +0000 (20:10 -0400)]
Add favorite map support.

This commit adds a line item to the player_info page
showing the player's favorite map. This is the map
the player has played the most in the past 90 days.
A link to the map_info page of that map in included.

12 years agoWhoops, missed a comma.
Ant Zucaro [Sat, 16 Jun 2012 15:42:38 +0000 (11:42 -0400)]
Whoops, missed a comma.

12 years agoFix merge conflict, change indentation a bit.
Ant Zucaro [Sat, 16 Jun 2012 15:41:48 +0000 (11:41 -0400)]
Fix merge conflict, change indentation a bit.

12 years agoMake RL the default dmg graph weapon.
Ant Zucaro [Sat, 16 Jun 2012 14:29:32 +0000 (10:29 -0400)]
Make RL the default dmg graph weapon.

12 years agoSmall style changes to the graph.
Ant Zucaro [Sat, 16 Jun 2012 14:02:40 +0000 (10:02 -0400)]
Small style changes to the graph.

12 years agoMerge branch 'master' of github.com:antzucaro/XonStat
Ant Zucaro [Sat, 16 Jun 2012 13:53:08 +0000 (09:53 -0400)]
Merge branch 'master' of github.com:antzucaro/XonStat

Conflicts:
xonstat/views/__init__.py
xonstat/views/player.py

12 years agoIntegrate the damage efficiency graph in player_info.
Ant Zucaro [Sat, 16 Jun 2012 13:44:21 +0000 (09:44 -0400)]
Integrate the damage efficiency graph in player_info.

It isn't complete yet, but it is much better than before, where
new players would have a blank graph. Now it checks that the
given player has *any* accuracy or damage based weapon usage
and shows the graph accordingly. If the player does not have
five games of either, the appropriate graph doesn't show.

The incomplete part is that I'm not setting the default
weapon to show (nex and rocket launcher). If a player plays,
say, 10 games avoiding the rocket launcher then it will still
show a blank graph b/c the rocket launcher is the default dmg
weapon shown. This will be fixed, I just need to find a good way.

12 years agoAdd a damage efficiency view structure.
Ant Zucaro [Fri, 15 Jun 2012 13:39:25 +0000 (09:39 -0400)]
Add a damage efficiency view structure.

Allow tracking of damage efficiency as well. Damage efficiency I'll
define as the amount of damage you do per hit. The higher, the
better! This is appropriate for all splash-damage weapons. Spam shots
are not included on purpose (unless they hit, of course) after
conversations with the competitive community; spam shots usually miss
and are intended for blocking routes or catching your opponent while
they are out of your direct line of sight.

12 years agoMerge pull request #12 from nyov/nyov/conversion
antzucaro [Wed, 6 Jun 2012 17:39:24 +0000 (10:39 -0700)]
Merge pull request #12 from nyov/nyov/conversion

converted the codebase to unix fileendings and file permissions

12 years agoRoutes for json views
nyov [Tue, 5 Jun 2012 18:25:54 +0000 (20:25 +0200)]
Routes for json views

12 years agoDummy json views
nyov [Tue, 5 Jun 2012 18:22:36 +0000 (20:22 +0200)]
Dummy json views

12 years agoModel representations for json serialization
nyov [Tue, 5 Jun 2012 16:44:50 +0000 (18:44 +0200)]
Model representations for json serialization

12 years agoUse jsonp renderer for remote requests (or this API would be pretty moot)
nyov [Tue, 5 Jun 2012 02:38:06 +0000 (04:38 +0200)]
Use jsonp renderer for remote requests (or this API would be pretty moot)

JSONP allows cross-domain requests by wrapping output
in a function call if requested.
Requires pyramid>=1.1

12 years agoSome code format changes for better readability
nyov [Tue, 5 Jun 2012 02:02:27 +0000 (04:02 +0200)]
Some code format changes for better readability

12 years agodos2unix file conversions for everything
nyov [Tue, 5 Jun 2012 01:44:00 +0000 (03:44 +0200)]
dos2unix file conversions for everything

Sorry, but the different encodings between files keep messing up my diffs.
Let's stick to one encoding here.

12 years agoMerge pull request #11 from nyov/nyov/refactor
antzucaro [Sun, 3 Jun 2012 22:30:11 +0000 (15:30 -0700)]
Merge pull request #11 from nyov/nyov/refactor

refactored views in preparation for json output

12 years agoMerge pull request #10 from nyov/nyov/favicon
antzucaro [Thu, 17 May 2012 00:56:08 +0000 (17:56 -0700)]
Merge pull request #10 from nyov/nyov/favicon

xonotic favicon

12 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

12 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!

12 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

12 years agoxonotic favicon
nyov [Wed, 16 May 2012 21:27:50 +0000 (23:27 +0200)]
xonotic favicon

12 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.

12 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

12 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'

12 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.

12 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.

12 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.

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

12 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.

12 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.

12 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'

12 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'

12 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.

12 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.

12 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

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

12 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.

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

12 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.

12 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.

12 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.

12 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. :(

12 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.

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

12 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.

12 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.

12 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.