Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix PEP8 errors

Roland Geiderf84b3f5204df
diff --git a/wger/nutrition/api/resources.py b/wger/nutrition/api/resources.py
index fd657fccc..58feb76a7 100644
--- a/wger/nutrition/api/resources.py
+++ b/wger/nutrition/api/resources.py
@@ -114,4 +114,4 @@ class MealItemResource(ModelResource):
class Meta:
queryset = MealItem.objects.all()
authentication = ApiKeyAuthentication()
- authorization = UserObjectsOnlyAuthorization()
\ No newline at end of file
+ authorization = UserObjectsOnlyAuthorization()
diff --git a/wger/utils/resources.py b/wger/utils/resources.py
index fd0748650..095c02c84 100644
--- a/wger/utils/resources.py
+++ b/wger/utils/resources.py
@@ -29,4 +29,4 @@ class UserObjectsOnlyAuthorization(ReadOnlyAuthorization):
return bundle.obj.get_owner_object().user == bundle.request.user
# Objects without owner information can be accessed
except AttributeError:
- return True
\ No newline at end of file
+ return True