Remove unused files
[scpubgit/stemmatology.git] / script / save_to_db.pl
index 3b85d09..2d734b3 100755 (executable)
@@ -70,7 +70,8 @@ if( $delete ) {
 
 # Now try reading the objects from the DB.
 if( $list ) {
-       foreach my $tid ( $kdb->tradition_ids ) {
+       foreach my $tref ( $kdb->traditionlist ) {
+               my $tid = $tref->{'id'};
                my $scope = $kdb->new_scope();
                my $t = $kdb->tradition( $tid );
                print STDERR "$tid: Tradition '" . $t->name . "'\n";
@@ -80,8 +81,7 @@ if( $list ) {
                print STDERR "...collation has " . scalar( $c->readings ) . " readings\n";
                print STDERR "...collation has " . scalar( $c->paths ) . " paths\n";
                print STDERR "...collation has " . scalar( $c->relationships ) . " relationship links\n";
-               my $s = $t->stemma;
-               if( $s ) {
+               foreach my $s ( $t->stemmata ) {
                        print STDERR "...associated stemma has graph " . $s->graph . "\n";
                }
        }