-
Notifications
You must be signed in to change notification settings - Fork 0
Database connection
Johan edited this page Jun 10, 2023
·
2 revisions
The script has built in functionality to dump the collected player data into a database.
To do this, set up your database, configure db_connect.py
to your liking and uncomment the relevant lines in the main
function of rlpi.py
.
def main(self):
...
if gameInfo['Match']['isRanked'] == 1:
self.handleDBdata(self.api_resps)
The database push has a check to only do it for ranked game modes. If you want to log casual games as well, leave the conditional commented out and unindent the handleDBdata call.
The database pushes are cached so that duplicates are not pushed in a small timeframe.