wger icon indicating copy to clipboard operation
wger copied to clipboard

Add tools to import and export exercises

Open Veltarn opened this issue 5 years ago • 8 comments

Proposed Changes

I created a tool to import and export exercises in xml format. It also includes images, converted to base64 and wrote in the xml file.

Other questions

  • I added some lines to the .gitignore file as my development setup has the media directory inside wger directory, is this a problem ?

Veltarn avatar Sep 07 '20 12:09 Veltarn

Another thing, make sure that the file is formatted according to PEP8. If you install flake8 and isort in the virtual env, you can check it with

flake8 --config .github/linters/.flake8

isort automatically sorts the imports: isort .

rolandgeider avatar Sep 07 '20 19:09 rolandgeider

And of course thanks for the PR, I hope I haven't made too many comments :)

rolandgeider avatar Sep 07 '20 19:09 rolandgeider

Thanks for the answer, I just saw one comment, I don't think it's that many haha Are you sure you've posted the others ?

I'm looking at the PEP8 formatting tomorow

Veltarn avatar Sep 07 '20 20:09 Veltarn

I actually didn't post them! 🙈

Turns out, that if you add the comments as a review and not as regular comments, you have to accept them all after finishing

rolandgeider avatar Sep 07 '20 20:09 rolandgeider

Perfect, I have some bit of work I will do this week before pushing the proposal to the few changes on the workout mode.

Veltarn avatar Sep 07 '20 20:09 Veltarn

👍🏻👍🏻

rolandgeider avatar Sep 08 '20 12:09 rolandgeider

Fixes done.

I forgot to say, the two menus can be reached in the Training menu if the member has the "exercises.change_exercise" permission.

You can export all the exercises or just the exercises for your language.

Veltarn avatar Sep 13 '20 10:09 Veltarn

Why not in the user account page ? A button to export and / or import exercises rather than in the main exercises menu ?

Veltarn avatar Dec 03 '20 08:12 Veltarn