diff options
author | cobacdavid <david.cobac@gmx.fr> | 2021-07-20 14:47:40 +0200 |
---|---|---|
committer | cobacdavid <david.cobac@gmx.fr> | 2021-07-20 14:47:40 +0200 |
commit | 1437626e907d9128d5b96f3b7a2785f15ccadb35 (patch) | |
tree | b8b5a40fd47ea90df517875442c6656096e7e917 | |
parent | a808ead3c74d57a7ccdb7f9e55cfa10a136d488c (diff) |
[github-contributions] bad day_idx init.
-rw-r--r-- | github-contributions-widget/github-contributions-widget.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/github-contributions-widget/github-contributions-widget.lua b/github-contributions-widget/github-contributions-widget.lua index aecc966..028b547 100644 --- a/github-contributions-widget/github-contributions-widget.lua +++ b/github-contributions-widget/github-contributions-widget.lua @@ -13,7 +13,7 @@ local naughty = require("naughty") local wibox = require("wibox") local widget_themes = require("awesome-wm-widgets.github-contributions-widget.themes") -local GET_CONTRIBUTIONS_CMD = [[bash -c "curl -s https://github-contributions.now.sh/api/v1/%s]] +local GET_CONTRIBUTIONS_CMD = [[bash -c "curl -s https://github-contributions.vercel.app/api/v1/%s]] .. [[ | jq -r '[.contributions[] ]] .. [[ | select ( .date | strptime(\"%%Y-%%m-%%d\") | mktime < now)][:%s]| .[].intensity'"]] @@ -78,8 +78,8 @@ local function worker(user_args) local col = {layout = wibox.layout.fixed.vertical} local row = {layout = wibox.layout.fixed.horizontal} - local day_idx = 5 - os.date('%w') - for _ = 0, day_idx do + local day_idx = 6 - os.date('%w') + for _ = 1, day_idx do table.insert(col, get_square(color_of_empty_cells)) end |