kopia lustrzana https://gitlab.com/tomaszg/geostat
Disable months not possible on OCDE and OCPL in hidden month matrix
rodzic
43aebec5fd
commit
c62045492b
|
@ -810,8 +810,13 @@ int main(int argc, char** argv) {
|
|||
std::cout << "<tr><th>" << i + 1900 << "</th> ";
|
||||
for (int j = 1; j <= 12; j++) { // j -> months in cols
|
||||
count = count_caches(cc, codes, [i, j](const Cache& c) -> bool { return (c.date_hidden_tm.tm_year == i && c.date_hidden_tm.tm_mon == j - 1); });
|
||||
if (count == 0)
|
||||
std::cout << "<td class=\"dt_zero\">" << 0 << "</td>";
|
||||
if (count == 0) {
|
||||
if ((!ocpl_user_uuid.empty() && ocde_user_uuid.empty() && i + 1900 == 2006 && j < 5) ||
|
||||
(!ocde_user_uuid.empty() && i + 1900 == 2005 && j < 8))
|
||||
std::cout << "<td class=\"dt_null\"></td>";
|
||||
else
|
||||
std::cout << "<td class=\"dt_zero\">" << 0 << "</td>";
|
||||
}
|
||||
else {
|
||||
std::cout << "<td codes=\"" << codes << "\">" << count << "</td>";
|
||||
n++;
|
||||
|
|
Ładowanie…
Reference in New Issue