Skip to content

Commit

Permalink
Merge pull request #91 from diggyk/master
Browse files Browse the repository at this point in the history
Fixing bigger optimization issue with home page
  • Loading branch information
gmjosack committed Nov 10, 2015
2 parents 27b92e0 + 270d74d commit f43dce9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions hermes/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1392,12 +1392,11 @@ def to_dict(self, base_uri=None, expand=None, only_open_labors=False):
"description": self.description,
}

if only_open_labors:
labors = self.get_open_labors()
else:
labors = self.labors

if "labors" in expand:
if only_open_labors:
labors = self.get_open_labors()
else:
labors = self.labors
out['labors'] = [
labor.to_dict(base_uri=base_uri, expand=set(expand))
for labor in labors
Expand Down
2 changes: 1 addition & 1 deletion hermes/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.5.6"
__version__ = "0.5.7"

0 comments on commit f43dce9

Please sign in to comment.