Skip to content

Commit

Permalink
fixed citation
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed Nov 21, 2023
1 parent b9229b8 commit baf87ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/update_citation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import yaml


def get_infos() -> Tuple[str]:
def get_infos() -> Tuple[str, str, str]:
headers = {
'Accept': 'application/json',
}
Expand All @@ -24,8 +24,9 @@ def get_infos() -> Tuple[str]:
except Exception:
print('Error while getting the Zenodo infos')
sys.exit(1)
data = response.json()[0]['metadata']
return data['doi'], data['version'], data['publication_date']
data = response.json()
metadata = data['hits']['hits'][0]['metadata']
return str(metadata['doi']), str(metadata['version']), str(metadata['publication_date'])


if __name__ == '__main__':
Expand Down
6 changes: 3 additions & 3 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors:
given-names: Rodja
orcid: https://orcid.org/0009-0009-4735-6227
title: 'NiceGUI: Web-based user interfaces with Python. The nice way.'
version: v1.3.16
date-released: '2023-10-06'
version: v1.4.2
date-released: '2023-11-06'
url: https://github.com/zauberzeug/nicegui
doi: 10.5281/zenodo.8413612
doi: 10.5281/zenodo.10075791

0 comments on commit baf87ab

Please sign in to comment.