Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
4b517d33
Commit
4b517d33
authored
Jul 15, 2011
by
Leo Gordon
Browse files
now it should properly refresh data in the existing object
parent
7ab2d639
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisStatsAdaptor.pm
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisStatsAdaptor.pm
+13
-5
No files found.
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisStatsAdaptor.pm
View file @
4b517d33
...
...
@@ -124,15 +124,23 @@ sub fetch_by_statuses {
}
=head2 refresh
Arg [1] : Bio::EnsEMBL::Hive::AnalysisStats object
Description: reload the AnalysisStats object from the database
Returntype : Bio::EnsEMBL::Hive::AnalysisStats object - same one with reloaded data
=cut
sub
refresh
{
my
(
$self
,
$stats
)
=
@_
;
my
(
$self
,
$stats
)
=
@_
;
my
$
constraint
=
"
ast.
analysis_id
=
"
.
$stats
->
analysis_id
;
my
$
new_stats
=
$self
->
fetch_by_
analysis_id
(
$stats
->
analysis_id
);
# fetch into a separate object
#return first element of _generic_fetch list
$stats
=
@
{
$self
->
_generic_fetch
(
$constraint
)};
%$stats
=
%$new_stats
;
# copy the data over
return
$stats
;
return
$stats
;
}
...
...
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