wger
wger copied to clipboard
Add tools to import and export exercises
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 ?
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 .
And of course thanks for the PR, I hope I haven't made too many comments :)
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
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
Perfect, I have some bit of work I will do this week before pushing the proposal to the few changes on the workout mode.
👍🏻👍🏻
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.
Why not in the user account page ? A button to export and / or import exercises rather than in the main exercises menu ?