Skip to content

Commit

Permalink
Automatic linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Github-actions committed Jan 6, 2024
1 parent 2726ce2 commit 7701367
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions wger/exercises/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ def check(cls, **kwargs):
Warning(
'exercises without translations',
hint=f'There are {no_translations} exercises without translations, this will '
'cause problems! You can output or delete them with "python manage.py '
'exercises-health-check --help"',
'cause problems! You can output or delete them with "python manage.py '
'exercises-health-check --help"',
id='wger.W002',
)
)
Expand Down Expand Up @@ -180,8 +180,7 @@ def last_update_global(self):
The latest update datetime of all exercises, videos and images.
"""
return max(
self.last_update,
*[image.last_update for image in self.exerciseimage_set.all()],
self.last_update, *[image.last_update for image in self.exerciseimage_set.all()],
*[video.last_update for video in self.exercisevideo_set.all()],
*[translation.last_update for translation in self.exercises.all()],
datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc)
Expand Down
1 change: 1 addition & 0 deletions wger/exercises/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def handle_deleted_entries(
style_fn=lambda x: x,
):
if not print_fn:

def print_fn(_):
return None

Expand Down
1 change: 1 addition & 0 deletions wger/manager/views/ical.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
next_weekday,
)


logger = logging.getLogger(__name__)
"""
Exports workouts and schedules as an iCal file that can be imported to a
Expand Down

0 comments on commit 7701367

Please sign in to comment.