This is a live notes post. It is of very low interest to almost all readers, but I do believe that the more open my work is, the better that work goes. These are posts mostly written for me, but if you arrived here from a search engine and it looks like I once had a problem that you have now then feel free to drop me a line and I’ll put things into order a little bit.
and at the very least this will mean the date is already parsed for me. Wait, of course it doesn’t mean that. It just means the date string is parsed out. I need the library file: na_lib_sorting.
The library file has the answer: ” datetime.datetime.strptime(item, TIMESTAMP_FORMAT))
Hmm, I’ve alteed na88 to printout just the date, but it’s still producing a string rather that the data-structure I want. Time for a quick Google.
The ever excellent Stackoverflow (via this answer that I have dutifully upvoted) has provided both the explanation I needed and the code for the next step. Excellent. Basis proof of concept now running.
Working script now active. yay!
A couple of notes for the future. The number of days should be taken from the command line, defaulting to zero. This would let me just add the file to the naSort code and reduce the number of files.
Let’s see if I can make it work.
As an aside – even thought I’m in the departure lounge at Vancouver airport. I’ve just switched my laptop over to UK time – it was amazing how I instantly felt more tired when I saw evidence it was three in the morning. (Flux activating at the same time didn’t help)
Now, after a short break, it becomes time to put the todo list in order. It’s currently 330 items strong, bit a lot of those are automatically generated ones that only come up in a working week and that have been mounting up in my absence. I’ll deal with those first.
And indeed, once I had, we were left with only 127 left (which makes me think I should keep an eye on the amount of overhead that I’m dealing with on a daily basis)
I used the na88 script to bring things back into line with where they were when I left, but appear to have discovered a bug – stay tuned.
Now fixed. I’ve added a task to put the script properly in the relevent git repo when I can work onilne.
The score look a lot more reasonable now. But there are still 62 of them that are over a week old even with this system. It’s also time to gather up all of the tasks that are on phones, laptops, scraps of paper, and business cards and put them into the main list. But I am getting a little tired.