Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
ehenneken committed Oct 26, 2022
1 parent 457ac10 commit 8d8aa5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics_service/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def get_citation_histograms(identifiers, data=None):
nr_hist = cy.frequencies(list(itertools.chain(*[d[0] for d in nr_data])))
nn_hist = cy.frequencies(list(itertools.chain(*[d[0] for d in nn_data])))
# From the years of the citations, determine the maximum
cityears = rr_hist.keys() + rn_hist.keys() + nr_hist.keys() + nn_hist.keys()
cityears = dict(rr_hist).keys() + dict(rn_hist).keys() + dict(nr_hist).keys() + dict(nn_hist).keys()
max_year = max(cityears)
# If this year lies in the future, set the "current year" to that year
if max_year > current_year:
Expand Down

0 comments on commit 8d8aa5d

Please sign in to comment.