attempt to dup check pc16/17/19/21
[spider.git] / perl / WCY.pm
index 06f41d2d9d394cc0348ea932977390d6c171d05e..ee9679c648c776fa763d159387e8c1827279dce9 100644 (file)
@@ -20,7 +20,7 @@ use Data::Dumper;
 use strict;
 use vars qw($date $sfi $k $expk $a $r $sa $gmf $au  @allowed @denied $fp $node $from 
             $dirprefix $param
-            $duplth $dupage);
+            $duplth $dupage $filterdef);
 
 $fp = 0;                                               # the DXLog fcb
 $date = 0;                                             # the unix time of the WWV (notional)
@@ -41,6 +41,20 @@ $dupage = 12*3600;                           # the length of time to hold spot dups
 $dirprefix = "$main::data/wcy";
 $param = "$dirprefix/param";
 
+$filterdef = bless ([
+                         # tag, sort, field, priv, special parser 
+                         ['by', 'c', 11],
+                         ['origin', 'c', 12],
+                         ['channel', 'n', 13],
+                         ['by_dxcc', 'n', 14],
+                         ['by_itu', 'n', 15],
+                         ['by_zone', 'n', 16],
+                         ['origin_dxcc', 'c', 17],
+                         ['origin_itu', 'c', 18],
+                         ['origin_itu', 'c', 19],
+                        ], 'Filter::Cmd');
+
+
 sub init
 {
        $fp = DXLog::new('wcy', 'dat', 'm');
@@ -195,7 +209,7 @@ sub print_item
        my $d = cldate($r->[0]);
        my $t = (gmtime($r->[0]))[2];
 
-       return sprintf("$d   %02d %5d %3d %3d   %3d %3d %-5s %-5s  %6s <%s>", 
+       return sprintf("$d   %02d %5d %3d %3d   %3d %3d %-5s %-5s %6s <%s>", 
                                    $t, @$r[1..9]);
 }