diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-04-12 19:54:43 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-04-12 19:54:43 +0000 |
commit | b2ff688493cf9f5381ad69fb05747c9944a46ca3 (patch) | |
tree | a818ae91925a5a8fcc592195981ae401cf565de4 /src/requests.c | |
parent | 05a98f92cb9eeab843727e0fa2fc052cb371109a (diff) |
fix the recently-active updates, add search columns for peers/file treeview
Diffstat (limited to 'src/requests.c')
-rw-r--r-- | src/requests.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/requests.c b/src/requests.c index bccf4f5..36363bf 100644 --- a/src/requests.c +++ b/src/requests.c @@ -116,11 +116,9 @@ JsonNode *torrent_get(gboolean recent) JsonObject *args = node_get_arguments(root); JsonArray *fields = json_array_new(); - if (recent) { - JsonArray *ids = json_array_new(); - json_array_add_string_element(ids, FIELD_RECENTLY_ACTIVE); - json_object_set_array_member(args, PARAM_IDS, ids); - } + if (recent) + json_object_set_string_member(args, PARAM_IDS, + FIELD_RECENTLY_ACTIVE); json_array_add_string_element(fields, FIELD_ETA); json_array_add_string_element(fields, FIELD_PEERS); |