Skip to content

Commit

Permalink
style(minor): use dict() where appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
strogonoff committed Jul 14, 2022
1 parent 3c43550 commit 7ac961e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,13 @@ def browse_external_reference(request, dataset_id):
"Couldn’t retrieve citation: {}".format(
str(exc)))
else:
composed = {
**data['bibitem'],
'primary_docid': ref.strip(),
'sources': {
composed = dict(
primary_docid=ref.strip(),
sources={
dataset_id: data,
},
}
**data['bibitem'],
)
return render(request, 'browse/citation_details.html', dict(
dataset_id=dataset_id,
ref=ref,
Expand Down

0 comments on commit 7ac961e

Please sign in to comment.