WeightliftingNZ / lifter-api-wrapper

This is an Python wrapper for the Lifter API
https://weightliftingnz.github.io/lifter-api-wrapper
MIT License
1 stars 0 forks source link

Add checks before creating athlete and competition #19

Open shivan-s opened 2 years ago

shivan-s commented 2 years ago

Is your feature request related to a problem? Please describe. A problem is creating duplicate athletes and competitions. On the database for lifter-api, name for athletes and competitions (and even competition dates) were not made implemented because it is possible to have athletes can have the same names but be different people.

Describe the solution you'd like A check is run before, and then a safe=False flag to ignore these checks.

Describe alternatives you've considered Can write this code outside using find_athlete() for example.

Additional context Will also have to create a find_competition() (another issue for this).