1
0
mirror of https://gitlab.crans.org/bde/nk20-scripts synced 2025-06-29 17:51:08 +02:00

Reorder imports and fix trailing spaces

This commit is contained in:
Alexandre Iooss
2021-05-12 17:43:18 +02:00
parent 1e9d731715
commit 3442edd2bf
14 changed files with 46 additions and 67 deletions

View File

@ -5,10 +5,9 @@ import json
import time
from collections import defaultdict
from django.core.management.base import BaseCommand
from django.apps import apps
from django.core.management.base import BaseCommand
from django.db import transaction
from polymorphic.models import PolymorphicModel
@ -16,6 +15,7 @@ def timed(method):
""""
A simple decorator to measure time elapsed in class function (hence the args[0])
"""
def _timed(*args, **kw):
ts = time.time()
result = method(*args, **kw)