summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2019-01-04 17:25:39 +0100
committernsensfel <SpamShield0@noot-noot.org>2019-01-04 17:25:39 +0100
commit83cd7ce064b8a46a106dc855d748b1bd7e45af01 (patch)
treecee5d4e3d21936925f8108940c35533f9f6484f5 /src/player/query
parent895a5348f521b16b3a6e32d921f7f23ec8f3036e (diff)
Removes 'id' field from ataxia entry values.
While sometimes usefull as a way to retrieve the object's ID, they were both redundant (you can't get the object without its ID anyway) and bothersome to maintain (insert + update, which would have required setting up a bounty for any insert).
Diffstat (limited to 'src/player/query')
-rw-r--r--src/player/query/plr_load.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/player/query/plr_load.erl b/src/player/query/plr_load.erl
index c73c6bd..278f568 100644
--- a/src/player/query/plr_load.erl
+++ b/src/player/query/plr_load.erl
@@ -73,10 +73,11 @@ fetch_data (Input) ->
-spec generate_reply(query_state(), input()) -> binary().
-generate_reply (QueryState, _Input) ->
+generate_reply (QueryState, Input) ->
Player = QueryState#query_state.player,
+ PlayerID = Input#input.target_id,
- Output = jiffy:encode([plr_set_player:generate(Player)]),
+ Output = jiffy:encode([plr_set_player:generate(PlayerID, Player)]),
Output.