Editing Module:BucketShow
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 9: | Line 9: | ||
local select_field = mw.text.trim(args[2] or '') | local select_field = mw.text.trim(args[2] or '') | ||
local b = mw.bucket(bucket_name).select(select_field) | local b = mw.bucket(bucket_name).select(select_field):limit(1) | ||
for k, v in pairs(args) do | for k, v in pairs(args) do | ||
| Line 17: | Line 17: | ||
end | end | ||
local data = b | local data = b:run() | ||
if data[1] and data[1][select_field] then | if data[1] and data[1][select_field] then | ||