Skip to content

Commit ce7691b

Browse files
committed
There are no settings anymore
1 parent 773ec61 commit ce7691b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

wger/exercises/sync.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@
1515
# Standard Library
1616
import os
1717

18+
# Third Party
19+
import requests
1820
# Django
1921
from django.conf import settings
2022
from django.core.files import File
2123
from django.core.files.temp import NamedTemporaryFile
2224

23-
# Third Party
24-
import requests
25-
2625
# wger
2726
from wger.core.api.endpoints import (
2827
LANGUAGE_ENDPOINT,
@@ -296,7 +295,6 @@ def handle_deleted_entries(
296295
style_fn=lambda x: x,
297296
):
298297
if not print_fn:
299-
300298
def print_fn(_):
301299
return None
302300

@@ -312,7 +310,6 @@ def print_fn(_):
312310

313311
if model_type == DeletionLog.MODEL_EXERCISE:
314312
obj_replaced = None
315-
nr_settings = None
316313
nr_slot_entries = None
317314
nr_logs = None
318315
try:
@@ -333,8 +330,6 @@ def print_fn(_):
333330

334331
obj.delete()
335332
print_fn(f'Deleted exercise {uuid}')
336-
if nr_settings:
337-
print_fn(f'- replaced in {nr_settings} in workouts with {replaced_by_uuid}')
338333
if nr_slot_entries:
339334
print_fn(f'- replaced in {nr_slot_entries} routines with {replaced_by_uuid}')
340335
if nr_logs:

0 commit comments

Comments
 (0)