src/main.cpp

changeset 7
d0f77dd2da42
parent 6
1040ba37d4c9
child 8
6a2e20a4a8ff
equal deleted inserted replaced
6:1040ba37d4c9 7:d0f77dd2da42
243 243
244 while (day_to_check <= report_end) { 244 while (day_to_check <= report_end) {
245 // get the entry from the heatmap 245 // get the entry from the heatmap
246 auto find_result = entries.find(day_to_check); 246 auto find_result = entries.find(day_to_check);
247 if (find_result == entries.end()) { 247 if (find_result == entries.end()) {
248 html::cell(0); 248 html::cell(day_to_check, 0);
249 } else { 249 } else {
250 html::cell(find_result->second); 250 html::cell(day_to_check, find_result->second);
251 } 251 }
252 // advance seven days and one column 252 // advance seven days and one column
253 day_to_check += chrono::days{7}; 253 day_to_check += chrono::days{7};
254 column++; 254 column++;
255 } 255 }

mercurial