diff options
author | streetturtle <streetturtle@users.noreply.github.com> | 2021-07-20 11:30:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 11:30:23 -0400 |
commit | dcc48b857a640de643c949a2599afdd159c69356 (patch) | |
tree | b8b5a40fd47ea90df517875442c6656096e7e917 /github-contributions-widget | |
parent | ac742a67e81d3d817643505b0ea99fdf035a35af (diff) | |
parent | 1437626e907d9128d5b96f3b7a2785f15ccadb35 (diff) |
Merge pull request #286 from cobacdavid/gcw_first_col_fix
[github-contributions] bad day_idx init.
Diffstat (limited to 'github-contributions-widget')
-rw-r--r-- | github-contributions-widget/github-contributions-widget.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/github-contributions-widget/github-contributions-widget.lua b/github-contributions-widget/github-contributions-widget.lua index 1d135a0..028b547 100644 --- a/github-contributions-widget/github-contributions-widget.lua +++ b/github-contributions-widget/github-contributions-widget.lua @@ -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 |