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

Merge branch 'l_eveil_du_nanax' into 'master'

L'eveil du nanax

See merge request bde/nk20-scripts!2
This commit is contained in:
bleizi
2023-07-13 19:48:50 +02:00
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)