From: Will Budic Date: Thu, 27 Feb 2020 02:50:49 +0000 (+1100) Subject: Metada now contains categories. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=561d28a312c7812c690d0b4a13698065b64ed76f;p=LifeLog.git Metada now contains categories. --- diff --git a/htdocs/cgi-bin/main.cgi b/htdocs/cgi-bin/main.cgi index 9759ea0..e8339b9 100755 --- a/htdocs/cgi-bin/main.cgi +++ b/htdocs/cgi-bin/main.cgi @@ -264,7 +264,7 @@ for my $key ( keys %hshDesc ) { my $kv = $hshDesc{$key}; if ( $kv ne ".." && index($key,'HASH(0x')!=0) { my $n = $hshCats{$key}; - $data_cats .= qq(\n); + $data_cats .= qq(\n); } } my $log_output = @@ -405,7 +405,8 @@ sub buildLog { while ( my @row = $pst->fetchrow_array() ) { my $i = 0; $id = $row[$i++]; #ID must be rowid in LOG. - my $ct = $hshCats{$row[$i++]}; #ID_CAT + my $cid = $row[$i++]; #CID ID_CAT not used. + my $ct = $hshCats{$cid}; #ID_CAT my $rtf = $row[$i++]; #ID_RTF since v.1.8 my $dt = DateTime::Format::SQLite->parse_datetime( $row[$i++] ); #LOG.DATE my $log = $row[$i++]; #LOG.LOG @@ -931,9 +932,11 @@ $sm_reset_all
View Statistics

Configure Log

LOGOUT
-
+ + $data_cats -
+ +