saltbot-org / saltbot

automated virtual betting bot
GNU General Public License v2.0
52 stars 45 forks source link

Newly observed records are not being used #468

Open dlouwe opened 2 years ago

dlouwe commented 2 years ago

Plugin was installed fresh from the Chrome webstore. I did not import any existing records; I wanted to use my own database from scratch. After a certain point I noticed that only up to one observed match was being used in the AI calculations (both for Scientist and Cowboy). Even after a tournament where it was easy to see fighters gain multiple records, only one match was being used in calculation

Something like this, even when red had >1 match in my DB:

unweighted (red W:L)(blue W:L) -> (1:0)(0:0)
details (red W:L)(blue W:L) -> (A:)(:)

Exporting and then importing my record DB will "correct" the issue, but only for the records that were imported. As I continue to observe new matches, the totals in the calculations do not increase. E.g. a character entering a tournament with 2 records, after two tournament matches will still only calculate based on 2 records when it should have 4.