{ version => '01', contest_name => 'BARTG Sprint', contest_id => 'BARTG-SPRINT', filter => { mode => "RTTY", band => \"IN('80M','40M','20M','15M','10M')", }, defaults => { contest_url => 'http://www.bartg.org.uk/sprintcontest.asp', # contest_url => 'http://www.bartg.org.uk/documents/Contests/Sprint/BARTG%20Sprint%20Contest%20rules%202011.pdf', log_cols => [qw/ mycall call qso_date time_on freq band mode stx srx dxccprefix calc1 pfx cont /], placeholders => [qw/ /], dropbox_options => { CATEGORY => [qw/ SOE SOAB MO SWL /], 'ARRL-SECTION' => [qw/ DX /], }, update => sub { my $row = shift; my $s = $row->{dxccprefix}; if( $s =~ /^(K|VE|JA|VK)$/ ){ my $n = ( $row->{pfx} =~ /(\d+)/g )[-1]; $s .= $n; return { calc1 => $s }; # The Call area (e.g. K4) for K/VE/JA/VK. } return { calc1 => '' }; }, Qs => [ { label => 'Qs', weight => 1, group_by => 'call, band', where => {} }, ], mults => [ { label => 'DXCC', group_by => 'dxccprefix' }, { label => 'K/VE/VK/JA Call Areas', group_by => 'calc1', where => { calc1 => {'!='=>''} } }, ], super_mults => [ { label => 'Continents', group_by => 'cont' }, # TODO: LIMIT 6 for super_mults ], cabrillo => { cabrillo_url => 'http://www.bartg.org.uk/documents/Contests/Cabrillo/Sample%20BARTG%20Sprint%20Cabrillo.pdf', version => '2.0', headers => [qw/ ARRL-SECTION CATEGORY CLUB NAME ADDRESS OPERATORS SOAPBOX /], qso_cols => [qw/cab_freq cab_mode cab_date cab_time mycall stx call srx /], qso_fmt => do { "%-5s %-2s %-10s %-04s %-12s %03d %-12s %03d" }, #1234567890123456789012345678901234567890123456789012345678901234567890123456789 #QSO: 14093 RY 2010-08-16 1721 GW4SKA 1 GB50ATG 002 #QSO: 14093 RY 2010-08-16 1721 GW4SKA 2 XU1ABC 010 }, }, years => { 2011 => { sample => '8617ed326985a5436d851d95e1c4ee2d', filter => { qso_date => { -between => [20110122, 20110123] }, }, }, }, }