gregsadetsky / nycnoise

https://nyc-noise.com
15 stars 0 forks source link

(low priority) "last month" in django events #197

Closed nycnoise closed 4 months ago

nycnoise commented 5 months ago

the "last month" thing doesn't seem to work, but i didn't notice for literally AGES & don't use that sort tool v often; low priority, just making note!

gregsadetsky commented 5 months ago

hey, just making sure -- when I click the "last month" on the right in the admin page (of events), it does work for me:

https://nyc-noise.com/admin/core/event/?starttime=last_month

is that the 'last month' you're referring to?

image
nycnoise commented 4 months ago

it's working for me now, too; i don't think i hallucinated, but must've been a fluke!!

gregsadetsky commented 4 months ago

oh actually I thought about it more, it must have happened in january!

I see the bug now, I was incorrectly doing the date math to show you month -1 of the year 2024 :-) so anyway yeah you were right! and the bug disappeared in february, obviously...

gregsadetsky commented 4 months ago

fixed this in 0802dde63c87d4c7b0dd75ac6df6749d21d1bb5a and did a bunch of other cleanup/improvements around search.

the previous/next month links should now work in all months - january, december, etc. :-)