My cast has, at the moment, one recurring monthly show -- Lingerie Nights. It's the second Friday of each month.
I wrote some general purpose tcl procedures that will give me that date in relation to the current date. For instance, if the current date is Sept 5, my procedures will return Sept 10. If the current_date is Sept 10, Sept 10 is returned AND a flag is set so I can say "TONIGHT" instead of the date. And if the current date is Sept 11, Oct 8 is returned.
The script works really well. One of the things I use it for is to keep the Lingerie Nights announcement tuple updated so it always shows up and it's in the right place in the list.
This morning, it wasn't there. :(
Well, duh. I was querying "current announcements" which will never retrieve the "passed" Lingerie Nights announcement. Consequently, it wouldn't get updated.
All fixed.
It was a design feature. Really.
I wrote some general purpose tcl procedures that will give me that date in relation to the current date. For instance, if the current date is Sept 5, my procedures will return Sept 10. If the current_date is Sept 10, Sept 10 is returned AND a flag is set so I can say "TONIGHT" instead of the date. And if the current date is Sept 11, Oct 8 is returned.
The script works really well. One of the things I use it for is to keep the Lingerie Nights announcement tuple updated so it always shows up and it's in the right place in the list.
This morning, it wasn't there. :(
Well, duh. I was querying "current announcements" which will never retrieve the "passed" Lingerie Nights announcement. Consequently, it wouldn't get updated.
All fixed.
It was a design feature. Really.