Skip to content

Commit

Permalink
Automatic linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Github-actions committed Nov 19, 2023
1 parent b4bd6fa commit 359a44a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions wger/core/models/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,8 @@ def user_bodyweight(self, weight):
"""
if (
not WeightEntry.objects.filter(user=self.user).exists() or (
datetime.date.today() - WeightEntry.objects.filter(user=self.user).latest().date >
datetime.timedelta(days=3)
datetime.date.today() - WeightEntry.objects.filter(user=self.user).latest().date
> datetime.timedelta(days=3)
)
):
entry = WeightEntry()
Expand Down
7 changes: 4 additions & 3 deletions wger/settings_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from wger import get_version
from wger.utils.constants import DOWNLOAD_INGREDIENT_WGER


"""
This file contains the global settings that don't usually need to be changed.
For a full list of options, visit:
Expand Down Expand Up @@ -171,7 +172,7 @@
'django.template.loaders.app_directories.Loader',
],
'debug':
False
False
},
},
]
Expand Down Expand Up @@ -256,7 +257,7 @@
LANGUAGE_CODE = 'en'

# All translation files are in one place
LOCALE_PATHS = (os.path.join(SITE_ROOT, 'locale'),)
LOCALE_PATHS = (os.path.join(SITE_ROOT, 'locale'), )

# Primary keys are AutoFields
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
Expand Down Expand Up @@ -497,7 +498,7 @@
#
# Ignore these URLs if they cause 404
#
IGNORABLE_404_URLS = (re.compile(r'^/favicon\.ico$'),)
IGNORABLE_404_URLS = (re.compile(r'^/favicon\.ico$'), )

#
# Password rules
Expand Down

0 comments on commit 359a44a

Please sign in to comment.