From 0b547ff8e801979b2f1ea42b1b686476f10341cf Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 30 Jul 2024 11:17:34 +0100 Subject: [PATCH] [Minor] Add `task:set_subject` alias for sanity --- src/lua/lua_task.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 21e24fc45..3968c01eb 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1318,6 +1318,7 @@ static const struct luaL_reg tasklib_m[] = { LUA_INTERFACE_DEF(task, get_metric_threshold), LUA_INTERFACE_DEF(task, set_metric_score), LUA_INTERFACE_DEF(task, set_metric_subject), + {"set_subject", lua_task_set_metric_subject}, LUA_INTERFACE_DEF(task, learn), LUA_INTERFACE_DEF(task, set_settings), LUA_INTERFACE_DEF(task, get_settings), -- 2.39.5