Opened 17 years ago
Closed 17 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.
Note:
See TracTickets
for help on using tickets.
No. The tutorial is correct. The
datetimemodule has been imported, sodatetime.date.today()is the way to get today's date.