Skip to content

Commit

Permalink
adjust width window, and refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
andreped committed Jun 21, 2022
1 parent 264d997 commit f553444
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/getbadge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ jobs:
run: |
cd assets/
wget "https://dataverse.no/api/info/metrics/filedownloads?parentAlias=ntnu"
ls -haltr
python generate_badge.py
ls -haltr
- name: Upload package to external repo release
uses: svenstaro/upload-release-action@v2
Expand Down
5 changes: 2 additions & 3 deletions assets/generate_badge.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@
options = {
'format': 'png',
'crop-h': '22',
'crop-w': '190',
'crop-x': '10',
'crop-w': '180',
'crop-x': '7',
'crop-y': '7',
'encoding': "UTF-8",
'custom-header' : [
('Accept-Encoding', 'gzip')
]
}


path = "filedownloads?parentAlias=ntnu"
data = np.asarray(pd.read_csv(path, delimiter=None))
pid2find = "10.18710/TLA01U"
Expand Down
1 change: 0 additions & 1 deletion assets/test.html

This file was deleted.

0 comments on commit f553444

Please sign in to comment.