mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3 compat for fosshub upload
This commit is contained in:
parent
eab1237969
commit
135bfcbefe
@ -218,8 +218,10 @@ def upload_to_fosshub():
|
|||||||
'publish': True,
|
'publish': True,
|
||||||
'isOldRelease': False,
|
'isOldRelease': False,
|
||||||
}
|
}
|
||||||
# print(json.dumps(jq, indent=2))
|
data = json.dumps(jq)
|
||||||
if not request('projects/{}/releases/'.format(project_id), data=json.dumps(jq)):
|
# print(data)
|
||||||
|
data = data.encode('utf-8')
|
||||||
|
if not request('projects/{}/releases/'.format(project_id), data=data):
|
||||||
raise SystemExit('Failed to queue publish job with fosshub')
|
raise SystemExit('Failed to queue publish job with fosshub')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user