Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

linted and added name to Authors.rst

ryowright2344b28eff17
diff --git a/AUTHORS.rst b/AUTHORS.rst
index 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/ryowright
Translators
-----------
diff --git a/variations.py b/variations.py
index cbc408a58..034ff7ddd 100644
--- a/variations.py
+++ b/variations.py
@@ -1,6 +1,8 @@
+# Standard Library
import sqlite3
from 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 together
def 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.py
index 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 field
variations = models.ManyToManyField("self",
- verbose_name=_('Variations'),
- symmetrical=True,
- blank=True)
+ verbose_name=_('Variations'),
+ symmetrical=True,
+ blank=True)
"Variations of this exercise"
#