Skip to content

Commit

Permalink
Merge pull request #98 from spacemansteve/master
Browse files Browse the repository at this point in the history
cleanup unused values sent to resolver
  • Loading branch information
spacemansteve committed May 1, 2019
2 parents 9d77174 + b8c2a10 commit 8efe182
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion adsmp/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ def generate_links_for_resolver(self, record):
if url:
resolver_record = {'bibcode': bibcode,
'data_links_rows': [{'url': [url],
'title': '', 'count': 0,
'title': [''], 'item_count': 0,
'link_type': 'ESOURCE',
'link_sub_type': 'EPRINT_HTML'}]}
except (KeyError, ValueError):
Expand Down
4 changes: 2 additions & 2 deletions adsmp/tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ def test_generate_links_for_resolver(self):
self.assertEqual('http://arxiv.org/abs/1902.09522', first['url'][0])
self.assertEqual('ESOURCE', first['link_type'])
self.assertEqual('EPRINT_HTML', first['link_sub_type'])
self.assertEqual('', first['title'])
self.assertEqual(0, first['count'])
self.assertEqual([''], first['title'])
self.assertEqual(0, first['item_count'])

bib_and_nonbib = {'bibcode': 'asdf',
'bib_data':
Expand Down

0 comments on commit 8efe182

Please sign in to comment.