This release builds on and completes the work that was started in 0.2.3
The program can now update the directory pages fully automatically, with no intermediate files that have to be manually uploaded.
In particular, this means that all tables in the [directory](reddit.com/r/counting/wiki/directory) are updated when `python3 update_thread_directory.py` is called. The threads in the `Top 25 Long Running Side Threads` are sorted by the total number of counts.
Additionally, any **new** threads are added to a table at the bottom of the page. Any threads which have been **archived** or **revived** are also taken care of: the archived threads are moved from the directory to the [archive](reddit.com/r/counting/wiki/directory/archive), and revived threads are moved from the archive to the new threads table. The new threads table is sorted alphabetically.
The list of side threads and their associated rules has been greatly expanded. For each side thread it knows about, the program keeps track of
- What a count in the side thread looks like
- What special rules there are for the side thread
- How to calculate the total number of counts in the side thread
On top of adding new threads, these rules have also been made more specific for many of the existing threads. In particular, the code now handles revivals of existing threads well: that revivals are no longer considering when finding the total number of comments, in keeping with existing practice.
Finding the right comment in new threads has been made easier by the addition of an option to search for the deepest comment on a submission, instead of trying to follow a chain down. This is a slower, but more robust approach to getting to the right place, and should probably be included as a fallback for all the other threads if the program gets stuck. The thread walking code itself has been made more robust by allowing it to move past a deleted comment if it's the only reply.