diff options
author | streetturtle <streetturtle@gmail.com> | 2020-02-16 14:10:21 -0500 |
---|---|---|
committer | streetturtle <streetturtle@gmail.com> | 2020-02-16 14:10:21 -0500 |
commit | 541f6edd54cf827fe23c576db03e5b96339999d1 (patch) | |
tree | e97572c97610a3aa43f67775bf510ff060625810 | |
parent | 249ac4d688aa047f03e8232d5b932a517641e3e1 (diff) |
Use account id as a reference to avatar in issue
-rw-r--r-- | jira-widget/jira.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jira-widget/jira.lua b/jira-widget/jira.lua index 652767a..b876c0b 100644 --- a/jira-widget/jira.lua +++ b/jira-widget/jira.lua @@ -97,13 +97,13 @@ local function worker(args) for i = 0, #rows do rows[i]=nil end for _, issue in ipairs(result.issues) do - local path_to_avatar = os.getenv("HOME") ..'/.cache/awmw/jira-widget/avatars/' .. issue.fields.assignee.key + local path_to_avatar = os.getenv("HOME") ..'/.cache/awmw/jira-widget/avatars/' .. issue.fields.assignee.accountId if not gfs.file_readable(path_to_avatar) then spawn.easy_async(string.format( DOWNLOAD_AVATAR_CMD, HOME_DIR, - issue.fields.assignee.key, + issue.fields.assignee.accountId, issue.fields.assignee.avatarUrls['48x48'])) end |