Opened 16 years ago

Closed 16 years ago

#8035 closed (invalid)

Typo in tutorial 1

Reported by: finsprings Owned by: nobody
Component: Documentation Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In tutorial one, the definition of was_published_today() includes:

self.pub_date.date() == datetime.date.today()

I think that should be:

self.pub_date.date() == datetime.today().date()

The typo is in 0.96 and the latest version.

Change History (1)

comment:1 by Malcolm Tredinnick, 16 years ago

Resolution: invalid
Status: newclosed

No. The tutorial is correct. The datetime module has been imported, so datetime.date.today() is the way to get today's date.

Note: See TracTickets for help on using tickets.
Back to Top