diff --git a/jira-widget/jira.lua b/jira-widget/jira.lua index 8ba037e..6307af4 100644 --- a/jira-widget/jira.lua +++ b/jira-widget/jira.lua @@ -112,7 +112,8 @@ local function worker(user_args) local args = user_args or {} - local icon = args.icon or HOME_DIR .. '/.config/awesome/awesome-wm-widgets/jira-widget/icon/jira-mark-gradient-blue.svg' + local icon = args.icon or + HOME_DIR .. '/.config/awesome/awesome-wm-widgets/jira-widget/icon/jira-mark-gradient-blue.svg' local host = args.host or show_warning('Jira host is unknown') local query = args.query or 'jql=assignee=currentuser() AND resolution=Unresolved' local timeout = args.timeout or 600 @@ -222,7 +223,8 @@ local function worker(user_args) widget = wibox.widget.textbox }, { - markup = "" .. issue.fields.assignee.displayName .. "", + markup = "" + .. issue.fields.assignee.displayName .. "", widget = wibox.widget.textbox }, spacing = 8, @@ -288,10 +290,7 @@ local function worker(user_args) end) ) ) - watch( - 'cat /home/pmakhov/.config/JetBrains/IntelliJIdea2020.2/scratches/scratch_27.json', - --string.format(GET_ISSUES_CMD, host, query:gsub(' ', '+')), - timeout, update_widget, jira_widget) + watch(string.format(GET_ISSUES_CMD, host, query:gsub(' ', '+')), timeout, update_widget, jira_widget) return jira_widget end