Self hosted FLOSS fitness/workout, nutrition and weight tracker
linted and added name to Authors.rst
ryowright2344b28eff17
diff --git a/AUTHORS.rst b/AUTHORS.rstindex b3e356ff2..1e129b0f8 100644--- a/AUTHORS.rst+++ b/AUTHORS.rst@@ -31,6 +31,7 @@ Developers* Christopher OConnell - https://github.com/oconnelc* Biplov - https://github.com/beingbiplov* Rashmi Kamath - https://github.com/Rkamath2+* Anthony (Ryo) Wright - https://github.com/ryowrightTranslators-----------diff --git a/variations.py b/variations.pyindex cbc408a58..034ff7ddd 100644--- a/variations.py+++ b/variations.py@@ -1,6 +1,8 @@+# Standard Libraryimport sqlite3from itertools import permutations+'''This script automates adding exercise variations to the database.Do not need to run again. Has already been ran.@@ -90,6 +92,7 @@ exercise_variation_ids = {conn = sqlite3.connect('database.sqlite')c = conn.cursor()+# Gets all variations of exercises and pairs them togetherdef get_exercise_permutations(exercise):perms = permutations(exercise, 2)@@ -101,5 +104,5 @@ for i in exercise_variation_ids:c.executemany('''INSERT INTO exercises_exercise_variations(from_exercise_id, to_exercise_id)VALUES(?, ?)''', exercise_perms)-#conn.commit()-#conn.close()\ No newline at end of file+# conn.commit()+# conn.close()diff --git a/wger/exercises/models.py b/wger/exercises/models.pyindex 5868608a4..da2cbaee1 100644--- a/wger/exercises/models.py+++ b/wger/exercises/models.py@@ -213,9 +213,9 @@ class Exercise(AbstractSubmissionModel, AbstractLicenseModel, models.Model):# Added variation fieldvariations = models.ManyToManyField("self",- verbose_name=_('Variations'),- symmetrical=True,- blank=True)+ verbose_name=_('Variations'),+ symmetrical=True,+ blank=True)"Variations of this exercise"#