projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
disable use of DBI for sh/dx as default, if active.
[spider.git]
/
perl
/
Spot.pm
diff --git
a/perl/Spot.pm
b/perl/Spot.pm
index 76d6e0b63191036f733d168e08636447e684f0ea..a2b9eee04efe5d9856f4e9d104721350818e495a 100644
(file)
--- a/
perl/Spot.pm
+++ b/
perl/Spot.pm
@@
-21,7
+21,8
@@
use QSL;
use strict;
use strict;
-use vars qw($fp $statp $maxspots $defaultspots $maxdays $dirprefix $duplth $dupage $filterdef $totalspots $hfspots $vhfspots $maxcalllth $can_encode);
+use vars qw($fp $statp $maxspots $defaultspots $maxdays $dirprefix $duplth $dupage $filterdef
+ $totalspots $hfspots $vhfspots $maxcalllth $can_encode $use_db_for_search);
$fp = undef;
$statp = undef;
$fp = undef;
$statp = undef;
@@
-52,6
+53,7
@@
$filterdef = bless ([
], 'Filter::Cmd');
$totalspots = $hfspots = $vhfspots = 0;
], 'Filter::Cmd');
$totalspots = $hfspots = $vhfspots = 0;
+$use_db_for_search = 0;
# create a Spot Object
sub new
# create a Spot Object
sub new
@@
-250,7
+252,7
@@
sub search
$to = $from + $maxspots if $to - $from > $maxspots || $to - $from <= 0;
$to = $from + $maxspots if $to - $from > $maxspots || $to - $from <= 0;
- if ($main::dbh) {
+ if ($main::dbh
&& $use_db_for_search
) {
return $main::dbh->spot_search($expr, $dayfrom, $dayto, $to-$from, $dxchan);
}
return $main::dbh->spot_search($expr, $dayfrom, $dayto, $to-$from, $dxchan);
}