Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion wordtrack.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def wordtrack_start(filename=DEFAULT_FILE, days=DEFAULT_TIME_PERIOD, wordgoal=DE
Create a new wordcount record (this stops previous count)
"""
startdate = datetime.date.today()
enddate = startdate + datetime.timedelta(days)
enddate = startdate + datetime.timedelta(days-1)
tracks = _read_wordtrack_file(filename)
# create the new record and save it
tracks.append([startdate, enddate, wordgoal, 0])
Expand Down