Fixes per lists.sr.ht updates

master 0.13.14
Drew DeVault 1 year ago
parent fcddddef7a
commit af1c1b3797
  1. 2
      hubsrht/blueprints/trackers.py
  2. 2
      hubsrht/blueprints/webhooks.py

@ -89,7 +89,7 @@ def new_POST(owner, project_name):
tracker.owner_id = owner.id
tracker.name = remote_tracker["name"]
tracker.description = remote_tracker["description"]
if any(remote_tracker["default_permissions"]["anonymous"]):
if any(remote_tracker["default_access"]:
tracker.visibility = Visibility.public
else:
tracker.visibility = Visibility.unlisted

@ -220,7 +220,7 @@ def todo_user(user_id):
for tracker in trackers:
tracker.name = payload["name"]
tracker.description = payload["description"]
if any(payload["default_permissions"]["anonymous"]):
if any(payload["default_access"]):
tracker.visibility = Visibility.public
else:
tracker.visibility = Visibility.unlisted

Loading…
Cancel
Save