This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start bringing back distributing/index.json
- Loading branch information
1 parent
30f4554
commit 9c2c15c
Showing
2 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
"""Endpoint to list team members. | ||
""" | ||
from aspen import Response | ||
from gratipay.utils import get_participant | ||
from gratipay.utils import get_team | ||
|
||
[--------------------] | ||
website.redirect('..', base_url='') # XXX Migrating to Teams! Fix this up! | ||
request.allow('GET') | ||
team = get_participant(state, restrict=False) | ||
if not team.show_as_team(user): | ||
raise Response(404) | ||
team = get_team(state) | ||
if team.available == 0: | ||
website.redirect('..', base_url='') | ||
|
||
[--------------------] application/json via json_dump | ||
team.get_members(user.participant) |