From: Isidor Zeuner Date: Sat, 3 Apr 2021 00:38:26 +0000 (+0200) Subject: avoid metatable logic X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=829442582846b0b8354d537b4241f2fec54798ea;p=lmz_opening_hours.git avoid metatable logic --- diff --git a/init.lua b/init.lua index cd9d7af..c859379 100644 --- a/init.lua +++ b/init.lua @@ -38,7 +38,7 @@ local function reset_execption() end local function opening_today() - local today = opening_hours_today + local today = opening_hours.today if today and today == get_date_formated() then return opening_hours.today_start, opening_hours.today_end elseif is_weekend() then