🕸📝Fergus Duniho wrote on Sun, Apr 29, 2018 07:30 PM UTC:
Things are partially fixed now. When it writes the log and updates the database, it will now use the last timestamp in the timeline for the endtime, assuming there is a timeline. Otherwise, it uses the present time. Apparently, it keeps a timeline only if time controls are in use. I may want to change that.
The other problem is that write_log.php is being called too often. I have to look into each instance where it is being called incorrectly and fix that. The difficulty in fixing this is that, thanks to the complexity of the script, I have lost sight of everything that is going on. I made updates to Game Courier to update the logs and database for finished games when any data is incorrect, but there are still bugs in that.
Things are partially fixed now. When it writes the log and updates the database, it will now use the last timestamp in the timeline for the endtime, assuming there is a timeline. Otherwise, it uses the present time. Apparently, it keeps a timeline only if time controls are in use. I may want to change that.
The other problem is that write_log.php is being called too often. I have to look into each instance where it is being called incorrectly and fix that. The difficulty in fixing this is that, thanks to the complexity of the script, I have lost sight of everything that is going on. I made updates to Game Courier to update the logs and database for finished games when any data is incorrect, but there are still bugs in that.