Skip to content

Commit cb0f18a

Browse files
committed
Fix spelling and add clarifying details
1 parent 1927a51 commit cb0f18a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,15 @@ class Event(models.Model):
5454
5555
```
5656

57-
date_utils.py
57+
date_utils.py (get a range covering the entire current month)
5858

5959
```python
6060
from django.utils import timezone
6161
from dateutil.relativedelta import relativedelta
6262
from psycopg2.extras import DateTimeRange
6363
6464
def get_month_range():
65+
"""Return a DateTimeRange range covering this entire month"""
6566
today = timezone.now().date()
6667
if today.day > 25:
6768
today += timezone.timedelta(7)
@@ -79,7 +80,7 @@ from .date_utils import get_month_range
7980
8081
def range_of_visitors_this_month(request):
8182
"""
82-
e.g., given the following instance:
83+
e.g., given the following instances:
8384
{"id" : 1, "name" : "Birthday", "potential_visitors" : "[2, 3)", ...}
8485
{"id" : 2, "name" : "Bake Sale", "potential_visitors" : "[30, 50)", ...}
8586
{"id" : 3, "name" : "Band Camp", "potential_visitors" : "[22, 28)", ...}

0 commit comments

Comments
 (0)