Skip to content

Commit

Permalink
Az/fix meta requests (cvat-ai#903)
Browse files Browse the repository at this point in the history
* fixed processing of meta requests
  • Loading branch information
azhavoro authored and Chris Lee-Messer committed Mar 5, 2020
1 parent 26148a4 commit d8795d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cvat/apps/auto_annotation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def delete_model(request, mid):
@login_required
def get_meta_info(request):
try:
tids = json.loads(request.body.decode('utf-8'))
tids = request.data
response = {
"admin": has_admin_role(request.user),
"models": [],
Expand Down
2 changes: 1 addition & 1 deletion cvat/apps/auto_segmentation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def create_thread(tid, labels_mapping, user):
def get_meta_info(request):
try:
queue = django_rq.get_queue('low')
tids = json.loads(request.body.decode('utf-8'))
tids = request.data
result = {}
for tid in tids:
job = queue.fetch_job('auto_segmentation.create/{}'.format(tid))
Expand Down
2 changes: 1 addition & 1 deletion cvat/apps/tf_annotation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def create_thread(tid, labels_mapping, user):
def get_meta_info(request):
try:
queue = django_rq.get_queue('low')
tids = json.loads(request.body.decode('utf-8'))
tids = request.data
result = {}
for tid in tids:
job = queue.fetch_job('tf_annotation.create/{}'.format(tid))
Expand Down

0 comments on commit d8795d6

Please sign in to comment.