aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_selectors/extractors.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/lua_selectors/extractors.lua')
-rw-r--r--lualib/lua_selectors/extractors.lua10
1 files changed, 2 insertions, 8 deletions
diff --git a/lualib/lua_selectors/extractors.lua b/lualib/lua_selectors/extractors.lua
index 532c56592..d88eaa216 100644
--- a/lualib/lua_selectors/extractors.lua
+++ b/lualib/lua_selectors/extractors.lua
@@ -134,15 +134,9 @@ uses any type by default)]],
['get_value'] = function(task, args)
local parts = task:get_parts() or E
local digests = {}
- for _,p in ipairs(parts) do
+ for i,p in ipairs(parts) do
if p:get_filename() then
- if #args == 0 then
- -- Optimise as we already have this hash in the API
- table.insert(digests, p:get_digest())
- else
- table.insert(digests, common.create_digest(p:get_content('raw_parsed'), args))
- end
-
+ table.insert(digests, common.get_cached_or_raw_digest(task, i, p, args))
end
end