beginnings rss scraper
[disclosr.git] / documents / index.php
blob:a/documents/index.php -> blob:b/documents/index.php
--- a/documents/index.php
+++ b/documents/index.php
@@ -10,8 +10,8 @@
 $agenciesdb = $server->get_db('disclosr-agencies');
 
 $idtoname = Array();
-foreach ($agenciesdb->get_view("app", "byName")->rows as $row) {
-    $idtoname[$row->value] = trim($row->key);
+foreach ($agenciesdb->get_view("app", "byCanonicalName")->rows as $row) {
+    $idtoname[$row->id] = trim($row->value->name);
 }
 $foidocsdb = $server->get_db('disclosr-foidocuments');
 try {
@@ -34,3 +34,4 @@
 }
 include_footer_documents();
 ?>
+