Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

always return blog posts by descending date; simplify bird-name getting #82

Merged
merged 2 commits into from Feb 24, 2017

Conversation

jgerigmeyer
Copy link
Member

No description provided.

modules/pages.py Outdated
@@ -103,9 +105,8 @@ def predicate(x, key):


def make_get_blog_entries_by_bird(builder):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we're not doing anything in the parent make_* method, is there a simpler way to do this in Python? In JS, I would use bind to create a partial. Oh hey, I found it; pushing... :)

builder,
)
env.globals['get_blog_entries_by_tag'] = make_get_blog_entries_by_tag(
env.globals['get_blog_entries_by_tag'] = partial(
get_blog_entries_by_tag,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I much prefer this style. Thanks.

@jgerigmeyer jgerigmeyer merged commit b638018 into master Feb 24, 2017
@jgerigmeyer jgerigmeyer deleted the blog-ordering branch February 24, 2017 16:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants