My trades got reset so I fixed myself, confirmed a modmail trade that involved me, and I got reset again.
In case numbers are important (I'm over 100 so it could relate to that)
Lost trades at 108 -> Fixed trades to 110 -> Manually confirmed a trade through PMing the bot -> set to 1
Usecase that needs to be considered: currently the bot is a few different scripts, most running on cronjob. If two scripts updates usernotes at the same "time" one of the changes will be discarded.