- Timestamp:
- Aug 28, 2018, 12:32:00 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ddt/ddt
r330 r331 2160 2160 {align => 'left', align_title => 'left', title => 'Date'}, 2161 2161 {align => 'left', align_title => 'left', title => 'Comment'}, 2162 {align => 'left', align_title => 'left', title => 'Category'}, 2162 2163 ); 2163 2164 2164 2165 LOOP_ON_DOMAIN: 2165 for my $domainset_current ( keys %{$computer_db}) {2166 for my $domainset_current (sort keys %{$computer_db}) { 2166 2167 next if $domainset_current eq 'dset'; 2167 2168 next if $domainset_current eq 'pool'; … … 2177 2178 my $date = sprintf '%04i-%02i-%02i', $year, $mon, $mday; 2178 2179 2180 my $category; 2179 2181 my $comment = $computer_db->{'dset'}{$domainset_current}{'comment'}; 2180 2182 $comment =~ s/^\d\d\d\d-\d\d-\d\d\s//; 2181 2183 $comment =~ s/\s+(\(\w+\))$// and $category = $1; 2184 2182 2185 $tb_computer->add($domainset_current, 2183 2186 $computer_db->{'dset'}{$domainset_current}{'dns_extension'}, 2184 2187 $date, 2185 2188 $comment, 2189 $category, 2186 2190 ); 2187 2191 }
Note: See TracChangeset
for help on using the changeset viewer.