diff --git a/ru/currency-ru-widget.lua b/ru/currency-ru-widget.lua
index 1c379f9..e837d96 100644
--- a/ru/currency-ru-widget.lua
+++ b/ru/currency-ru-widget.lua
@@ -69,7 +69,7 @@ end
function on_network_result_history(result,error)
history = ""
- local color = ui:get_colors()
+ local color = aio:colors()
local equals = " = "
local xml = require "xml"
local t = xml:parse(result)
@@ -111,7 +111,7 @@ function get_rates()
end
function get_formatted_change_text(change)
- local color = ui:get_colors()
+ local color = aio:colors()
if change > 0 then
return " +"..change.."%"
elseif change < 0 then
diff --git a/ru/isdayoff-ru-widget.lua b/ru/isdayoff-ru-widget.lua
index 4ec70e6..c5ba832 100644
--- a/ru/isdayoff-ru-widget.lua
+++ b/ru/isdayoff-ru-widget.lua
@@ -7,8 +7,8 @@
-- version = "1.0"
function on_alarm()
- local dateStr = os.date('%Y%m%d')
- http:get("https://isdayoff.ru/"..dateStr)
+ local dateStr = os.date('%Y%m%d')
+ http:get("https://isdayoff.ru/"..dateStr)
end
function on_network_result(result)
diff --git a/ru/quotes-ru-widget.lua b/ru/quotes-ru-widget.lua
index 96ad088..1366e3c 100644
--- a/ru/quotes-ru-widget.lua
+++ b/ru/quotes-ru-widget.lua
@@ -11,14 +11,14 @@ function on_alarm()
end
function on_network_result(result)
- quote = ajson:get_value(result, "object string:quoteText")
- author = ajson:get_value(result, "object string:quoteAuthor")
+ quote = ajson:read(result, "object string:quoteText")
+ author = ajson:read(result, "object string:quoteAuthor")
ui:show_lines({ quote }, { author })
end
function on_click()
if quote ~= nil then
- system:copy_to_clipboard(quote)
+ system:to_clipboard(quote)
end
end