Commit Graph

30 Commits

Author SHA1 Message Date
Howl
4be5948d97 Fix get_users returning no results if user doesn't have a leaderboard position 2016-09-09 18:55:26 +02:00
Howl
476cd385f8 tiny get_beatmaps performance improvement 2016-08-23 21:30:11 +02:00
Howl
4d9f466491 Forgot a break inf a for-range loop. Broke all the mode detection system. 2016-08-23 16:45:47 +02:00
Howl
f35bb0a7e8 Fix m = 0 killing the query 2016-08-23 15:42:59 +02:00
Howl
73b0f48586 Add get_beatmaps 2016-08-22 23:04:52 +02:00
Howl
817592e736 Remove common.OsuTime, change all occurencies to common.UnixTimestamp 2016-08-19 17:02:51 +02:00
Howl
4f7ef9c071 u param 2016-08-15 21:51:51 +02:00
Howl
cab63a94ac Make rank actually contain rank 2016-08-15 21:37:24 +02:00
Howl
954ec755b8 Implement get_scores in peppyapi 2016-08-15 21:13:40 +02:00
Howl
b9d35ac46d Add more where clauses because I forgot 'em 2016-08-15 20:07:40 +02:00
Howl
346f26177c Change all references to sql.DB to references to sqlx.DB 2016-08-15 13:45:42 +02:00
Howl
17fef6c654 Silently ignore time.ParseErrors 2016-08-09 19:15:53 +02:00
Howl
24933cc08f Show countries of everyone, without checking show_country. 2016-07-06 23:43:43 +02:00
Nyo
39f6b2bbcf New privileges on API (allowed column only) 2016-07-03 21:55:03 +02:00
Howl
7cbbb626c1 LEFT JOIN -> INNER JOIN 2016-06-18 02:42:47 +02:00
Howl
32738aaae0 Simplify string to int conversion where possible 2016-06-13 21:48:09 +02:00
Howl
122e2afa1b Don't log message in get_user if it's an ErrNoRows 2016-05-30 19:18:31 +02:00
Howl
ba5a078db3 forgot allowed check 2016-05-29 13:09:36 +02:00
Howl
0c6237ed01 Use userid rather than username 2016-05-28 23:48:29 +02:00
Howl
fb08a80308 fixes 2016-05-28 20:31:46 +02:00
Howl
6a374a4f9d Implement get_user_best and get_user_recent in peppyapi 2016-05-28 20:24:39 +02:00
Howl
45c67cf9b7 Start implementing get_beatmaps 2016-05-18 18:37:36 +02:00
Howl
52e1fa09ca Revert "Normalise floats (don't use Inf in JSON)"
This reverts commit 330757ec78.
2016-05-18 18:00:22 +02:00
Howl
330757ec78 Normalise floats (don't use Inf in JSON) 2016-05-18 17:48:19 +02:00
Howl
2afc557ef8 peppyapi: replicate behaviour of original API (check for user ID first, then for username) 2016-05-18 17:47:39 +02:00
Howl
a16c196799 Add level in /api/get_user 2016-05-17 17:00:09 +02:00
Howl
f7559e8cc5 Implement /api/get_match (will return empty array, match data is currently not stored in ripple) 2016-05-15 14:04:59 +02:00
Howl
e043dd9cdf Remove useless println 2016-05-15 13:57:28 +02:00
Howl
d6f67915c5 Start implementing peppyapi; implement /api/get_user 2016-05-15 13:57:04 +02:00
Howl
3ddab1de15 Initial commit 2016-04-03 19:59:27 +02:00