--- a/documents/disclogsList.php
+++ b/documents/disclogsList.php
@@ -1,7 +1,7 @@
@@ -12,6 +12,7 @@
$disclogs = 0;
$red = 0;
$green = 0;
+$yellow = 0;
$orange = 0;
try {
$rows = $agenciesdb->get_view("app", "byCanonicalName", null, true)->rows;
@@ -33,10 +34,10 @@
if (isset($row->value->FOIDocumentsURL)) {
$disclogs++;
echo ''
- . $row->value->FOIDocumentsURL . '';
+ . $row->value->FOIDocumentsURL . '';
if ($ENV == "DEV")
echo '
('
- . 'view local copy)';
+ . 'view local copy)';
} else {
echo "✘";
}
@@ -46,8 +47,14 @@
echo "✔";
$green++;
} else if (file_exists("./scrapers/" . $row->id . '.txt')) {
- echo "▬";
- $orange++;
+ if (trim(file_get_contents("./scrapers/" . $row->id . '.txt')) == "no disclog") {
+ echo "◎";
+ $yellow++;
+ } else {
+ echo file_get_contents("./scrapers/" . $row->id . '.txt');
+ echo "▬";
+ $orange++;
+ }
} else {
echo "✘";
$red++;
@@ -62,7 +69,7 @@
}
echo "";
echo $agencies . " agencies, " . round(($disclogs / $agencies) * 100) . "% with disclosure logs; "
- . round(($green / $disclogs) * 100) . "% logs with scrapers " . round(($red / $disclogs) * 100) . "% logs without scrapers " . round(($orange / $disclogs) * 100) . "% logs Work-In-Progress scrapers ";
+ . round(($green / $disclogs) * 100) . "% logs with scrapers " . round(($red / $disclogs) * 100) . "% logs without scrapers " . round(($orange / $disclogs) * 100) . "% logs Work-In-Progress scrapers ";
include_footer_documents();
?>