add designing category
This commit is contained in:
parent
1fe41b6677
commit
e585fbb4a8
4 changed files with 10 additions and 8 deletions
|
@ -57,7 +57,7 @@ def parse_arguments():
|
|||
parser.add_argument('--entity', dest='entity', metavar='FILE',
|
||||
action=FileAction,
|
||||
help='Absolute path to file for the heartbeat. Can ' +
|
||||
'also be a url, domain, or app when ' +
|
||||
'also be a url, domain or app when ' +
|
||||
'--entity-type is not file.')
|
||||
parser.add_argument('--file', dest='file', action=FileAction,
|
||||
help=argparse.SUPPRESS)
|
||||
|
@ -83,13 +83,13 @@ def parse_arguments():
|
|||
parser.add_argument('--entity-type', dest='entity_type',
|
||||
action=StoreWithoutQuotes,
|
||||
help='Entity type for this heartbeat. Can be ' +
|
||||
'"file", "domain", or "app". Defaults to "file".')
|
||||
'"file", "domain" or "app". Defaults to "file".')
|
||||
parser.add_argument('--category', dest='category',
|
||||
action=StoreWithoutQuotes,
|
||||
help='Category of this heartbeat activity. Can be ' +
|
||||
'"coding", "building", "debugging", ' +
|
||||
'"running tests", "browsing", or ' +
|
||||
'"code reviewing". Defaults to "coding".')
|
||||
'"running tests", "browsing", "code reviewing" ' +
|
||||
' or "designing". Defaults to "coding".')
|
||||
parser.add_argument('--proxy', dest='proxy', action=StoreWithoutQuotes,
|
||||
help='Optional proxy configuration. Supports HTTPS '+
|
||||
'and SOCKS proxies. For example: '+
|
||||
|
|
|
@ -66,7 +66,8 @@ class Heartbeat(object):
|
|||
'debugging',
|
||||
'running tests',
|
||||
'browsing',
|
||||
'code reviewing'
|
||||
'code reviewing',
|
||||
'designing',
|
||||
]
|
||||
if self.category not in allowed_categories:
|
||||
self.category = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue