summaryrefslogtreecommitdiff
path: root/lib/VNWeb/Elm.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-03-18 12:24:56 +0100
committerYorhel <git@yorhel.nl>2021-03-23 11:16:22 +0100
commita286672505ee3f6dfd9fb5d62cef460e7807176d (patch)
treefae538cff1f1b6e1e1af67082dc633639fae854c /lib/VNWeb/Elm.pm
parent7ffe7fa485c49b3d44150ed7b63d9062ae654ac8 (diff)
Traits: Convert to vndbids + add edit history
Much the same as the previous conversion of tags.
Diffstat (limited to 'lib/VNWeb/Elm.pm')
-rw-r--r--lib/VNWeb/Elm.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/VNWeb/Elm.pm b/lib/VNWeb/Elm.pm
index 953fc9b9..68b244c7 100644
--- a/lib/VNWeb/Elm.pm
+++ b/lib/VNWeb/Elm.pm
@@ -90,13 +90,14 @@ our %apis = (
locked => { anybool => 1 },
} } ],
TraitResult => [ { aoh => { # Response to 'Traits'
- id => { id => 1 },
+ id => { vndbid => 'i' },
name => {},
searchable => { anybool => 1 },
applicable => { anybool => 1 },
- state => { int => 1 },
defaultspoil => { uint => 1 },
- group_id => { required => 0, uint => 1 },
+ hidden => { anybool => 1 },
+ locked => { anybool => 1 },
+ group_id => { required => 0, vndbid => 'i' },
group_name => { required => 0 },
} } ],
VNResult => [ { aoh => { # Response to 'VN'