Closed e-aakash closed 4 years ago
@e-aakash I think the problematic line in question here this one https://github.com/wncc/instiapp-api/blob/04dfca352d390638d88bb1860a40a25d99a9f3ff/other/management/commands/reconstruct-search.py#L24
Enumerating the queryset is a synchronous only operation, which we are doing from an async call (on the main thread, sure), so django disallows this. A fix would probably be to first fetch the queryset and then pass it to the async function (querysets in django are lazy loaded, so this isn't happening right now)
LGTM 💯
Just suppress off all lint errors; none are relevant
Codecov Report
100.00% <ø> (ø)
100.00% <ø> (ø)
100.00% <100.00%> (ø)
100.00% <100.00%> (ø)
100.00% <100.00%> (ø)
100.00% <100.00%> (ø)
100.00% <100.00%> (ø)
100.00% <100.00%> (ø)
100.00% <100.00%> (ø)
100.00% <100.00%> (ø)
Continue to review full report at Codecov.