MirUlr / dsa_calculator

Some classes for handling the 3d20 test of the the german pen and paper system in a streamlined way.
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

Store Funzel skills locally #35

Open MirUlr opened 2 years ago

MirUlr commented 2 years ago

Considering the amount of spells, rituals, liturgies, ceremonies, etc. the time to draw these from the web (see #34) is tremendous. At least it is not applicable to fetch these information on the fly. Therefore it seems appropriate to store this data locally.

MirUlr commented 2 years ago

Maybe storage as csv file should work just fine.

Yet to discuss is the update strategy; following proposals:

  1. Accsess locally stored csv file time stamp. After a certain period of time in productive mode a background process is started to update funzel skills.
  2. At every launch of makeHero.py it is checked, if the csv-file exists and when it was created. The user is informed in a dialog whether or not a file exists and how old it is. The user may decide to fetch the funzel skills now.

In either way it must be verified, that the newly fetched data is not broken before the previous data is deleted. This is curcial due to the fact, that #34 is realized via HTML-soup-sieving instead of a proper API.

@RabeaSennlaub any thougts on this?