Skip to content

Commit

Permalink
Merge pull request #84 from mikelambert/master
Browse files Browse the repository at this point in the history
Add a _repr__ so we know what each shard does on the mapreduce dashboard.
  • Loading branch information
tkaitchuck committed Jan 26, 2016
2 parents e0d79c8 + 41232b9 commit dcc2b8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/src/mapreduce/property_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ def to_json(self):
def from_json(cls, json):
return cls(json["filters"], json["model_class_path"])

def __repr__(self):
return "PropertyRange(%r)" % self.to_json()

def _split_datetime_property(start, end, n, include_start, include_end):
# datastore stored datetime precision is microsecond.
Expand Down

0 comments on commit dcc2b8a

Please sign in to comment.