Skip to content

Commit

Permalink
cleanup unused values sent to resolver
Browse files Browse the repository at this point in the history
although they are not used, they must be of the right type
  • Loading branch information
SpacemanSteve authored and SpacemanSteve committed May 1, 2019
1 parent 9d77174 commit b8c2a10
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 b8c2a10

Please sign in to comment.