Skip to content

Commit

Permalink
fix(curatedObjectsCount): fixed # of curated objects
Browse files Browse the repository at this point in the history
- using a different API endpoint that filters out AFP data

#53
  • Loading branch information
valearna committed Aug 26, 2021
1 parent 03bb1a3 commit 787773a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def get_word_counters(weighted_score, abstracts, genes_only, count):

@staticmethod
def get_paper_num_curated_entities(paper_id):
req = urllib.request.Request("http://rest.wormbase.org/rest/widget/paper/" + paper_id + "/referenced")
req = urllib.request.Request("https://wormbase.org/rest/widget/paper/" + paper_id + "/referenced")
try:
results = json.loads(urllib.request.urlopen(req).read().decode('latin1'))
return sum([field_value if isinstance(field_value, int) else len(field_value) for field_value in
Expand Down

0 comments on commit 787773a

Please sign in to comment.