finally done

This commit is contained in:
notfire 2025-02-18 14:56:41 -05:00
parent a5b8880393
commit e2e1f1267f
Signed by: notfire
GPG key ID: 3AFDACAAB4E56B16
2 changed files with 4 additions and 2 deletions

View file

@ -16,9 +16,10 @@ foreach (array_reverse($rows) as $i) {
if ($i["isrespondedto"] === "f" && $i["ispublic"] === "t") {
$totalUnresponded++;
} else if ($i["ispublic"] === "f") {
$totalPriv++;
if ($i["isprivread" === "t"]) {
$totalPrivRead++;
} else {
$totalPriv++;
}
} else {
$totalRespondedPub++;

View file

@ -12,7 +12,8 @@ CREATE TABLE data (
ispublic BOOLEAN NOT NULL,
isrespondedto BOOLEAN NOT NULL,
responsetext TEXT,
responsetime TIMESTAMPTZ
responsetime TIMESTAMPTZ,
isprivread BOOLEAN NOT NULL
);
";