From e2e1f1267f0ee7cd6954833a471ec37574f88407 Mon Sep 17 00:00:00 2001 From: notfire Date: Tue, 18 Feb 2025 14:56:41 -0500 Subject: [PATCH] finally done --- admin/all.php | 3 ++- setup.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/all.php b/admin/all.php index c6b4bd4..73db58c 100644 --- a/admin/all.php +++ b/admin/all.php @@ -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++; diff --git a/setup.php b/setup.php index 26c18b1..3791d77 100644 --- a/setup.php +++ b/setup.php @@ -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 ); ";