summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2021-07-20 11:30:23 -0400
committerGitHub <noreply@github.com>2021-07-20 11:30:23 -0400
commitdcc48b857a640de643c949a2599afdd159c69356 (patch)
treeb8b5a40fd47ea90df517875442c6656096e7e917
parentac742a67e81d3d817643505b0ea99fdf035a35af (diff)
parent1437626e907d9128d5b96f3b7a2785f15ccadb35 (diff)
Merge pull request #286 from cobacdavid/gcw_first_col_fix
[github-contributions] bad day_idx init.
-rw-r--r--github-contributions-widget/github-contributions-widget.lua4
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