File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 15
15
# Standard Library
16
16
import os
17
17
18
+ # Third Party
19
+ import requests
18
20
# Django
19
21
from django .conf import settings
20
22
from django .core .files import File
21
23
from django .core .files .temp import NamedTemporaryFile
22
24
23
- # Third Party
24
- import requests
25
-
26
25
# wger
27
26
from wger .core .api .endpoints import (
28
27
LANGUAGE_ENDPOINT ,
@@ -296,7 +295,6 @@ def handle_deleted_entries(
296
295
style_fn = lambda x : x ,
297
296
):
298
297
if not print_fn :
299
-
300
298
def print_fn (_ ):
301
299
return None
302
300
@@ -312,7 +310,6 @@ def print_fn(_):
312
310
313
311
if model_type == DeletionLog .MODEL_EXERCISE :
314
312
obj_replaced = None
315
- nr_settings = None
316
313
nr_slot_entries = None
317
314
nr_logs = None
318
315
try :
@@ -333,8 +330,6 @@ def print_fn(_):
333
330
334
331
obj .delete ()
335
332
print_fn (f'Deleted exercise { uuid } ' )
336
- if nr_settings :
337
- print_fn (f'- replaced in { nr_settings } in workouts with { replaced_by_uuid } ' )
338
333
if nr_slot_entries :
339
334
print_fn (f'- replaced in { nr_slot_entries } routines with { replaced_by_uuid } ' )
340
335
if nr_logs :
You can’t perform that action at this time.
0 commit comments