-
Notifications
You must be signed in to change notification settings - Fork 236
author page: moved logic from template to module #1776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1 similar comment
oalders
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks for doing this.
| took => $took, | ||
| total => $data->{hits}->{total}, | ||
| aggregated => $aggregated, | ||
| latest => $latest, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we alpha sort the keys?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
| push @aggregated, $rel; | ||
| } | ||
|
|
||
| return +[ \@aggregated, $latest ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason for the + here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, just style (got used to write +[] and +{} to indicate refs), nothing except readability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see it for
sub { +{ foo => 'bar' } }since that makes the braces easier to read, but with the array reference it mostly confuses me. :)
c502e9c to
965590c
Compare
|
@oalders updated code according to your comments |
another structure being built in the templates moved to the controller.