Ticket #1546 (closed defect: fixed)
Package metadata_created returns the wrong date
Reported by: | johnglover | Owned by: | johnglover |
---|---|---|---|
Priority: | minor | Milestone: | ckan-sprint-2011-12-19 |
Component: | ckan | Keywords: | |
Cc: | Repository: | ckan | |
Theme: | none |
Description
metadata_created seems to be returning the date of the earliest revision (for all packages), rather than the earliest revision for a specific package.
Change History
comment:1 Changed 2 years ago by johnglover
- Status changed from new to closed
- Resolution set to fixed
comment:2 Changed 2 years ago by dread
It looks like Rufus forgot the second bit of the AND clause:
and_(model.revision_table.c.id==model.package_revision_table.c.revision_id, + model.package_revision_table.c.continuity_id==self.id) )
Unfortunately John's fix breaks the #191 fix. I'm reopening that to fix it there.
Note: See
TracTickets for help on using
tickets.
Fixed: https://github.com/okfn/ckan/commit/fbaf4459b7da95c1db0ade165ea09720539c2f80