Changeset 28719 for trunk/tools/czartool/Gpc1Db.pm
- Timestamp:
- Jul 27, 2010, 2:42:17 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/tools/czartool/Gpc1Db.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/czartool/Gpc1Db.pm
r28704 r28719 73 73 ########################################################################### 74 74 # 75 # Returns priority for this label 76 # 77 ########################################################################### 78 sub getPriority { 79 my ($self, $label) = @_; 80 81 my $query = $self->{_db}->prepare(<<SQL); 82 SELECT priority 83 FROM Label 84 WHERE label LIKE '$label' 85 SQL 86 87 $query->execute; 88 my $priority = scalar $query->fetchrow_array(); 89 if (!$priority) {return 50000;} # assume labels not given priority in gpc1 Db have highest priority 90 return $priority; 91 } 92 93 ########################################################################### 94 # 75 95 # Returns count of exposures with this state for this label 76 96 #
Note:
See TracChangeset
for help on using the changeset viewer.
