Skip to content

Commit 6e5e350

Browse files
Merge pull request #75 from pebble-dev/fix_oops
Update appstore-api to accept unlisted for API
2 parents dc17325 + 67555b8 commit 6e5e350

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

appstore/developer_portal_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def set_app_visbility(app_id):
402402
db.session.commit()
403403
return jsonify(success=True, visibility="public")
404404

405-
elif str(req["visibility"]).lower() == "private":
405+
elif str(req["visibility"]).lower() == "unlisted":
406406

407407
if app.visible == True:
408408
# Delete the entry from Algolia
@@ -415,10 +415,10 @@ def set_app_visbility(app_id):
415415
print(f"Discord is being weird: {repr(e)}")
416416

417417
db.session.commit()
418-
return jsonify(success=True, visibility="private")
418+
return jsonify(success=True, visibility="unlisted")
419419

420420
else:
421-
return jsonify(error="Invalid value for field: visibility. Expected public or private", e="invalid.field.visibility"), 400
421+
return jsonify(error="Invalid value for field: visibility. Expected public or unlisted", e="invalid.field.visibility"), 400
422422

423423

424424
@devportal_api.route('/app/<app_id>/timeline_token')

0 commit comments

Comments
 (0)