We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e9764d commit 9c00b73Copy full SHA for 9c00b73
src/server/api/views.py
@@ -320,7 +320,10 @@ def search_json_node(request):
320
result_copy = result.copy()
321
if 'author' in result_copy.keys():
322
result_copy['author'] = User.objects.get(pk=result_copy['author']).username
323
- result_copy['cite'] = len(result_copy['REF'])
+ try:
324
+ result_copy['cite'] = len(result_copy['REF'])
325
+ except:
326
+ result_copy['cite'] = 0
327
results_data.append(result_copy)
328
329
data = json.dumps({'result': results_data})
0 commit comments