This commit is contained in:
Kovid Goyal 2016-08-17 10:05:16 +05:30
parent 1ead1415e3
commit 9d0607a896

View File

@ -137,7 +137,7 @@ def upload_to_fosshub(files=None):
'version': __version__, 'version': __version__,
}) })
jq = {'software': 'Calibre', 'apiKey':get_fosshub_data(), 'upload':entries} jq = {'software': 'Calibre', 'apiKey':get_fosshub_data(), 'upload':entries}
rq = urllib2.urlopen('https://www.fosshub.com/JSTools/uploadJson', urllib.urlencode(jq)) rq = urllib2.urlopen('https://www.fosshub.com/JSTools/uploadJson', urllib.urlencode({'content':jq}))
if rq.getcode() != 200: if rq.getcode() != 200:
raise SystemExit('Failed to upload to fosshub, with HTTP error code: %d' % rq.getcode()) raise SystemExit('Failed to upload to fosshub, with HTTP error code: %d' % rq.getcode())