Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
turning off 'past' campaigns by default in /campaigns API
Browse files Browse the repository at this point in the history
  • Loading branch information
tspurway committed Oct 28, 2015
1 parent 0cec7a0 commit 192fa3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion splice/web/api/campaign.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self):
self.reqparse_get = reqparse.RequestParser()
self.reqparse_get.add_argument('account_id', type=int, required=True, help='Account ID', location='args')
self.reqparse_get.add_argument('past', type=inputs.boolean, required=False,
help='Campaigns that ran in the past', location='args', default=True)
help='Campaigns that ran in the past', location='args', default=False)
self.reqparse_get.add_argument('in_flight', type=inputs.boolean, required=False,
help='Campaigns currently running', location='args', default=True)
self.reqparse_get.add_argument('scheduled', type=inputs.boolean, required=False,
Expand Down
2 changes: 1 addition & 1 deletion tests/api/test_campaign.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_get_campaigns_by_account_id(self):
# Verify two accounts are returned.
for account_id, campaigns in self.campaign_fixture.iteritems():
url = url_for('api.campaign.campaigns')
url = url + '?account_id=%s' % account_id
url = url + '?account_id=%s&past=True' % account_id
response = self.client.get(url)
assert_equal(response.status_code, 200)
resp = json.loads(response.data)
Expand Down

0 comments on commit 192fa3f

Please sign in to comment.