Merge pull request #286 from cobacdavid/gcw_first_col_fix

[github-contributions] bad day_idx init.
This commit is contained in:
streetturtle 2021-07-20 11:30:23 -04:00 committed by GitHub
commit dcc48b857a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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