Actions
Bug #10703
closedget() returned more than one UnsafeConvertionCache
Start date:
02/05/2021
Due date:
02/08/2021
% Done:
100%
Estimated time:
Detected in build:
git
Platform:
Published in build:
Description
Pavel reached the exception that prevents any futher expert assessment:
get() returned more than one UnsafeConvertionCache -- it returned 2! Traceback (most recent call last): File "/home/alpha/git/klever/venv/lib/python3.7/site-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/var/www/klever-bridge/bridge/marks/api.py", line 136, in create mark, cache_id = perform_unsafe_mark_create(self.request.user, report, serializer) File "/var/www/klever-bridge/bridge/marks/UnsafeUtils.py", line 43, in perform_unsafe_mark_create conv = UnsafeConvertionCache.objects.get(unsafe=report, converted__function=convert_func).converted File "/home/alpha/git/klever/venv/lib/python3.7/site-packages/django/db/models/manager.py", line 82, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/home/alpha/git/klever/venv/lib/python3.7/site-packages/django/db/models/query.py", line 422, in get num if not limit or num < limit else 'more than %s' % (limit - 1), marks.models.UnsafeConvertionCache.MultipleObjectsReturned: get() returned more than one UnsafeConvertionCache -- it returned 2!
We should give him an ability to proceed!
Actions