braindead adaptation.. _get_circ_history_csv predates fetch_usre_circ_history
I haven't scrutinized what the two circ_history subs actually do, but I bet
there's room for improvement here.
However, as it is now we do get a significant speed boost. Thanks Dyrcona!
Signed-off-by: Jason Etheridge <jason@equinoxinitiative.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
my $circs = $self->fetch_user_circ_history;
$self->ctx->{csv}->{rows} = $self->_get_circ_history_csv(
- [map {$_->{id}} @$ids]
+ [map {$_->source_circ} @$circs]
);
return $self->set_file_download_headers($filename, 'text/csv; encoding=UTF-8');