Make is_seed optional

This commit is contained in:
Joel Wachsler 2022-08-05 19:30:27 +00:00
parent a5301119d2
commit 4fad724316
3 changed files with 5 additions and 8 deletions

View File

@ -1660,7 +1660,7 @@ Property | Type | Description
`size` | integer | File size (bytes) `size` | integer | File size (bytes)
`progress` | float | File progress (percentage/100) `progress` | float | File progress (percentage/100)
`priority` | integer | File priority. See possible values here below `priority` | integer | File priority. See possible values here below
`is_seed` | bool | True if file is seeding/complete `is_seed` _optional_ | bool | True if file is seeding/complete
`piece_range` | integer array | The first number is the starting piece index and the second number is the ending piece index (inclusive) `piece_range` | integer array | The first number is the starting piece index and the second number is the ending piece index (inclusive)
`availability` | float | Percentage of file pieces currently available (percentage/100) `availability` | float | Percentage of file pieces currently available (percentage/100)

View File

@ -2994,7 +2994,7 @@
description: Some( description: Some(
"True if file is seeding/complete", "True if file is seeding/complete",
), ),
is_optional: false, is_optional: true,
is_list: false, is_list: false,
}, },
), ),
@ -3028,7 +3028,7 @@
ApiMethod { ApiMethod {
name: "pieceStates", name: "pieceStates",
description: Some( description: Some(
"The response is a JSON array of `return_objects`;\n\n\nPossible values of `return_objects`:\n\n\nExample:\n\n```JSON\n[0,0,2,1,0,0,2,1]\n```", "The response is a JSON array of `return_objects`;\n\nPossible values of `return_objects`:\n\n\nExample:\n\n```JSON\n[0,0,2,1,0,0,2,1]\n```",
), ),
url: "pieceStates", url: "pieceStates",
types: CompositeTypes { types: CompositeTypes {

View File

@ -7962,9 +7962,9 @@ TokenTree {
], ],
}, },
TableRow { TableRow {
raw: "`is_seed` | bool | True if file is seeding/complete", raw: "`is_seed` _optional_ | bool | True if file is seeding/complete",
columns: [ columns: [
"is_seed", "is_seed _optional_",
"bool", "bool",
"True if file is seeding/complete", "True if file is seeding/complete",
], ],
@ -8194,9 +8194,6 @@ TokenTree {
Text( Text(
"", "",
), ),
Text(
"",
),
Text( Text(
"Possible values of `return_objects`:", "Possible values of `return_objects`:",
), ),