|
|
|
@ -9,6 +9,7 @@ import os
|
|
|
|
import rq
|
|
|
|
import rq
|
|
|
|
import shutil
|
|
|
|
import shutil
|
|
|
|
import tempfile
|
|
|
|
import tempfile
|
|
|
|
|
|
|
|
import itertools
|
|
|
|
|
|
|
|
|
|
|
|
from django.db import transaction
|
|
|
|
from django.db import transaction
|
|
|
|
from django.utils import timezone
|
|
|
|
from django.utils import timezone
|
|
|
|
@ -251,7 +252,7 @@ class Results():
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
"label": label,
|
|
|
|
"label": label,
|
|
|
|
"frame": frame_number,
|
|
|
|
"frame": frame_number,
|
|
|
|
"points": " ".join("{},{}".format(pair[0], pair[1]) for pair in points),
|
|
|
|
"points": list(itertools.chain.from_iterable(points)),
|
|
|
|
"attributes": attributes or {},
|
|
|
|
"attributes": attributes or {},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|