Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
docstring fixes (thanks @justinvdm)
Browse files Browse the repository at this point in the history
  • Loading branch information
smn committed Nov 13, 2013
1 parent 68349e1 commit 1876ea4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go/apps/jsbox/opt_out.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def wrapper(self, api, command):
reason='Missing key: %s' % (key,))

value = command[key]
# NOTE: This needs to be updated once we have some proper
# tools for validating command input
# value is not allowed to be `False`, `None`, `0`
# or an empty string.
if not value:
Expand Down Expand Up @@ -69,8 +71,6 @@ def handle_status(self, api, command):
Accepts an address_type and address_value and
retrieves the opt-out entry for it.
Returns ``None`` if it doesn't exist.
Command fields:
- ``address_type``: the type of address to check for opt-out
status on. At the moment only ``msisdn`` is used.
Expand Down Expand Up @@ -139,7 +139,7 @@ def handle_optout(self, api, command):
Success reply fields:
- ``success``: set to ``true``
- ``opted_out``: set to ``true``
- ``created_at``: the timestamp of the opt-out (if opted out)
- ``created_at``: the timestamp of the opt-out
- ``message_id``: the message_id of the message that triggered
the opt-out.
Expand Down

0 comments on commit 1876ea4

Please sign in to comment.