/[webpac2]/trunk/vhost/webpac2.cgi
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/vhost/webpac2.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1240 by dpavlin, Sun Jul 12 17:23:47 2009 UTC revision 1242 by dpavlin, Sun Jul 12 18:18:57 2009 UTC
# Line 136  my $inputs_available = 0; Line 136  my $inputs_available = 0;
136    
137  foreach ( @{ $db->{input} } ) {  foreach ( @{ $db->{input} } ) {
138          my $input = $_->{name} || die "no name in ",dump( $_ );          my $input = $_->{name} || die "no name in ",dump( $_ );
139            next unless defined $stats->{input}->{$input}; # skip inputs without data
140          if ( ! $only_input->{'-labels'}->{$input} ) {          if ( ! $only_input->{'-labels'}->{$input} ) {
141                  push @{ $only_input->{'-values'} }, $input;                  push @{ $only_input->{'-values'} }, $input;
142                          $only_input->{'-labels'}->{$input} = $_->{description} || $input;                          $only_input->{'-labels'}->{$input} = $_->{description} || $input;
# Line 281  if ( my $search = param('search') ) { Line 282  if ( my $search = param('search') ) {
282    
283                  while ( my $result = $swish_results->next_result ) {                  while ( my $result = $swish_results->next_result ) {
284    
285                          my $data = from_json $result->property('data');                          my $data = from_json( $result->property('data'), {utf8 => 1} );
286    
287                          dump_yaml( 'data', $data );                          dump_yaml( 'data', $data );
288    

Legend:
Removed from v.1240  
changed lines
  Added in v.1242

  ViewVC Help
Powered by ViewVC 1.1.26