Skip to content

Commit c919a7f

Browse files
committed
fix variable name
1 parent 5b71423 commit c919a7f

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

update.py

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,9 @@
6565
'file_parts': ['file'],
6666
'primary_file': 'file'}
6767

68-
'''
69-
data = {
70-
'name': '1.21.7-2.1',
71-
'version_number': '1.21.7-2.1',
72-
'changelog': 'latest_id' + '\n' + 'test' + '\n',
73-
'dependencies': [],
74-
'game_versions': ['1.21.7'],
75-
'version_type': 'release',
76-
'loaders': ['fabric'],
77-
'featured': False,
78-
'status': 'listed',
79-
'requested_status': 'listed',
80-
'project_id': 'Uq3JO1Dp',
81-
'file_parts': ['file'],
82-
'primary_file': 'file'}
83-
'''
68+
8469
payload = {'data': json.dumps(data)}
85-
token = os.environ.get('TOKEN')
70+
token = os.environ.get('MODRINTH_TOKEN')
8671
useragent.update({'Authorization': token})
8772
upload = requests.post('https://api.modrinth.com/v2/version', files=files, headers=useragent, data=payload)
8873

0 commit comments

Comments
 (0)