After errors on the controller, Swatbot needed to be restarted but some data was missing. It is necessary to write a script to query buildbot and populate the missing data in swatbot.
A new swatbot_missing_builds tool was added to swattool. https://git.yoctoproject.org/swat-tools/tree/swatbot_missing_builds/main.py