34 Commits

Author SHA1 Message Date
A. Svensson
91090f6b0d Deactivate PrivateServers when they've been offline for over a week. 2015-04-06 13:03:13 +02:00
A. Svensson
637a7ba3bd Added PrivateServer model. 2015-04-06 12:12:06 +02:00
A. Svensson
4c64e92320 Fixed the fucking unicode issues with the models. 2015-04-06 02:45:05 +02:00
A. Svensson
1b1d9f876f Sort the servers some more. 2015-03-15 15:31:45 +01:00
A. Svensson
a8f37d7e28 Loop over offline servers and fill in "empty" history for them. 2015-03-10 21:17:13 +01:00
A. Svensson
95ef380a3c Do averages for weekdays over a month instead. 2015-03-09 19:09:16 +01:00
A. Svensson
ace2159fac Better rounding for the measures. 2015-03-09 18:13:43 +01:00
A. Svensson
78ae35cd63 Catch some errors from get_averages_for_weekdays. 2015-03-09 17:18:26 +01:00
A. Svensson
62c227ef1b Cleaned up measure_weekdays so it's understandable now. 2015-03-09 17:08:51 +01:00
A. Svensson
6a489bc4f7 calendar.day_names can't be trusted, if the host's locale changes. 2015-03-09 16:47:22 +01:00
A. Svensson
cd3c9d0fd9 Fixed averages for weekdays. 2015-03-09 16:36:17 +01:00
A. Svensson
dfbc57ed31 Store "live stats" for each server and cleaned up the functions. 2015-03-09 15:52:31 +01:00
A. Svensson
579a256170 Small fixes. 2015-03-09 13:51:03 +01:00
A. Svensson
dff0b67ccd Added a warning note. 2015-03-08 19:00:23 +01:00
A. Svensson
1d3e302978 Limit weekly_averages to the past week. 2015-03-08 18:52:52 +01:00
A. Svensson
581195ebae Added player averages for each week day. 2015-03-08 17:59:11 +01:00
A. Svensson
fa49c0b829 Let the db perform the stat calculations. 2015-03-08 15:12:08 +01:00
A. Svensson
a64f842b83 Added shortcut functions for getting server stats. 2015-03-08 14:25:24 +01:00
A. Svensson
afa8e74b6f Removed the redis stuff and replaced with new django model.
--HG--
branch : history_model
2015-03-08 12:56:59 +01:00
A. Svensson
2630afa14d Did some changes on how to get the player history for a server. 2015-03-08 11:31:26 +01:00
A. Svensson
5b0d097f88 Make sure the redis db doesn't grow out of control. 2015-02-25 18:22:30 +01:00
A. Svensson
915905c4be URLFields can't parse byond urls... 2015-02-23 20:28:58 +01:00
A. Svensson
6c53c83826 Whops, let's delete servers for real now. 2015-02-23 20:25:05 +01:00
A. Svensson
a453b4dbf0 Added security note. 2015-02-23 20:09:19 +01:00
A. Svensson
63749b71ca Attempt to remove servers without updates, after a week. 2015-02-23 20:07:50 +01:00
A. Svensson
2e369d98fd Removed PopulationHi. and replaced it with a Redis storage. 2015-02-23 18:15:41 +01:00
A. Svensson
7269cfce61 Fixed history ordering. 2015-02-22 10:56:16 +01:00
A. Svensson
8cedfcbe6a Did some minor fixes for the admin views. 2015-02-18 22:09:00 +01:00
A. Svensson
a8e54ece4c Changed Population to PopulationHistory. 2015-02-18 21:35:32 +01:00
A. Svensson
569c5b73ee Added current_players to Server. 2015-02-18 21:30:50 +01:00
A. Svensson
a1b573cecd Changed ordering of timestamps. 2015-02-18 20:17:12 +01:00
A. Svensson
a3e0bbf7e7 Fixed model representations for Gameservers. 2015-02-18 17:51:44 +01:00
A. Svensson
43058d4b19 site_url for a Server can now be blank. 2015-02-18 17:44:55 +01:00
A. Svensson
f3281f0376 Created first app gameservers. 2015-02-18 17:11:21 +01:00