Shortens category_id to cat_id in a rest json response

This commit is contained in:
Simone Mainardi 2020-05-28 17:01:04 +02:00
parent 38067e4ef8
commit 3afb189336
2 changed files with 3 additions and 3 deletions

View file

@ -23,8 +23,8 @@ local res = {}
local categories = interface.getnDPICategories()
for category, category_id in pairs(categories) do
res[category] = {category_id = tonumber(category_id)}
for category, cat_id in pairs(categories) do
res[category] = {cat_id = tonumber(cat_id)}
end
print(rest_utils.rc(rc, res))