ficlatte / main

Ficlatté website main code
GNU Affero General Public License v3.0
2 stars 2 forks source link

Sidebar - Story featured date #14

Closed stitzelj closed 7 years ago

stitzelj commented 7 years ago

I'd like to add back into the sidebar the date a story is featured, similar to what we had back on Ficly. To make the tracking easier, since some stories end up featuring more than once, we could display either the first feature date or the latest feature date. Does the current table structure track feature dates and maintain that information once a story is no longer featured?

ethel-t-frog commented 7 years ago

I was going to confidently assert that the ftime field stores the date and time that a story was first featured. It seems, however, that the latest ftime field is 5th May 2015, so that might suggest to me that this field stopped being populated when I migrated from Perl to Python/Django.

Oopsie. That was remiss of me. Sorry about that.

The code that does the featuring is in castle/management/commands/ficlatte_nightly.py, which should now be fixed. It seems that the sidebar code doesn't do anything with ftime either.

stitzelj commented 7 years ago

15 Pull request for this feature. I'll probably change the layout somewhat once I get around to giving the site a fresh coat of paint, but for now it's at least present.

stitzelj commented 7 years ago

Resolved with #15.