From fb334f27fab3ff5dbbc05f3da42fb5d4a8628b00 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Wed, 21 Apr 2021 10:58:31 -0400 Subject: Update jira.lua --- jira-widget/jira.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'jira-widget') 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 -- cgit v1.2.3