Skip to content

Commit f553444

Browse files
committed
adjust width window, and refactored
1 parent 264d997 commit f553444

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

.github/workflows/getbadge.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ jobs:
3232
run: |
3333
cd assets/
3434
wget "https://dataverse.no/api/info/metrics/filedownloads?parentAlias=ntnu"
35-
ls -haltr
3635
python generate_badge.py
37-
ls -haltr
3836
3937
- name: Upload package to external repo release
4038
uses: svenstaro/upload-release-action@v2

assets/generate_badge.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@
66
options = {
77
'format': 'png',
88
'crop-h': '22',
9-
'crop-w': '190',
10-
'crop-x': '10',
9+
'crop-w': '180',
10+
'crop-x': '7',
1111
'crop-y': '7',
1212
'encoding': "UTF-8",
1313
'custom-header' : [
1414
('Accept-Encoding', 'gzip')
1515
]
1616
}
1717

18-
1918
path = "filedownloads?parentAlias=ntnu"
2019
data = np.asarray(pd.read_csv(path, delimiter=None))
2120
pid2find = "10.18710/TLA01U"

assets/test.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)