Permalink
Browse files

Updates to documentation

  • Loading branch information...
1 parent f87c2a0 commit e1125eb506694a16a16bca48b467204beef83d3a @zachwill zachwill committed Jun 21, 2012
Showing with 8 additions and 2 deletions.
  1. +7 −1 README.md
  2. +1 −1 three/core.py
View
@@ -88,8 +88,14 @@ abstracted away.
>>> # But let's use the between parameter.
... three.requests(between=['03-10-2012', '03-17-2012'])
->>> # And, let's get all the requests! (Currently 83...)
+>>> # And, let's get all the requests! (Or, as many as possible...)
... three.requests(between=['03-10-2012', '03-17-2012'], count=100)
+
+>>> # We could even get requests of different types between those days.
+>>> requests = []
+>>> dates = ['03-10-2012', '03-17-2012']
+>>> requests.extend(three.requests(between=dates, count=100))
+>>> requests.extend(three.requests(between=dates, count=100, status="closed"))
```
View
@@ -118,7 +118,7 @@ def _split_date(self, time):
if isinstance(time, str):
month, day, year = [int(t) for t in re.split(r'-|/', time)]
if year < 100:
- # Quick hack for dates > 2000.
+ # Quick hack for dates < 2000.
year += 2000
time = date(year, month, day)
return time.strftime('%Y-%m-%dT%H:%M:%SZ')

0 comments on commit e1125eb

Please sign in to comment.