Opened 7 years ago

Closed 7 years ago

#8035 closed (invalid)

Typo in tutorial 1

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

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 Changed 7 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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