Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
f4027326
Commit
f4027326
authored
Mar 13, 2014
by
Leo Gordon
Browse files
update the status in the object first, and then only store the change if possible
parent
e1735148
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
modules/Bio/EnsEMBL/Hive/AnalysisStats.pm
modules/Bio/EnsEMBL/Hive/AnalysisStats.pm
+8
-4
No files found.
modules/Bio/EnsEMBL/Hive/AnalysisStats.pm
View file @
f4027326
...
...
@@ -210,15 +210,19 @@ sub refresh {
sub
update
{
my
$self
=
shift
;
return
unless
(
$self
->
adaptor
);
$self
->
adaptor
->
update
(
$self
);
if
(
$self
->
adaptor
)
{
$self
->
adaptor
->
update
(
$self
);
}
}
sub
update_status
{
my
(
$self
,
$status
)
=
@_
;
return
unless
(
$self
->
adaptor
);
$self
->
adaptor
->
update_status
(
$self
->
analysis_id
,
$status
);
$self
->
status
(
$status
);
if
(
$self
->
adaptor
)
{
$self
->
adaptor
->
update_status
(
$self
->
analysis_id
,
$status
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment