jacobwojoski / dice-stats

A Module for Foundry VTT that tracks and displays dice stats
MIT License
7 stars 6 forks source link

Database export? #122

Closed bogga closed 4 months ago

bogga commented 4 months ago

Hi,

Is it possible to export the stats database so I can query it with custom requests in js, python, etc?

jacobwojoski commented 4 months ago

How are you looking to query it.

The database isn’t really a database. It’s just a way foundry stores global objects called flags.

It’s really just a copy of the player object saved somewhere all connected players can access. Because all modules are loaded client side needed a way to transfer info around.

I could just straight export each player object as json and you could parse that if you want?

bogga commented 4 months ago

yeah a json export would be really handy thanks! One of my players does stats or something and wants to analyse the data in ways the UI doesn't allow

jacobwojoski commented 4 months ago

@bogga Next release will have this (1.18.2) Will be out in a few min