Skip to content

Commit

Permalink
#22 cran lookup now uses author fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwunderbar666 committed Jul 26, 2023
1 parent 2feb1a5 commit 84f1bd1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions flaskinventory/add/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,6 @@ def cran(pkg) -> Union[dict, bool]:

result['url'] = url.split(',')[0].strip()



if 'License' in data.keys():
result['license'] = data['License']

Expand All @@ -740,8 +738,8 @@ def cran(pkg) -> Union[dict, bool]:
authors_split = authors_raw.split(',')
authors = [a.strip() for a in authors_split]

if len(authors) > 0:
result['authors'] = ";".join(authors)
result['_authors_fallback'] = authors
result['_authors_fallback|sequence'] = {str(i): str(i) for i in range(len(authors))}

return result

Expand Down

0 comments on commit 84f1bd1

Please sign in to comment.