minor optimizations

This commit is contained in:
Gert Wohlgemuth 2018-05-24 00:31:16 -07:00
parent ad36947fe2
commit 6689c88a7c
3 changed files with 4 additions and 7 deletions

View File

@ -264,7 +264,6 @@ class Arguments(object):
default=None default=None
) )
self.parser.add_argument( self.parser.add_argument(
'--stop-loss', '--stop-loss',
help='Renders stop/loss information in the main chart', help='Renders stop/loss information in the main chart',
@ -310,7 +309,6 @@ class Arguments(object):
default=None default=None
) )
self.parser.add_argument( self.parser.add_argument(
'--plot-macd', '--plot-macd',
help='Renders a macd chart of the given ' help='Renders a macd chart of the given '
@ -353,7 +351,6 @@ class Arguments(object):
type=int type=int
) )
self.parser.add_argument( self.parser.add_argument(
'-db', '--db-url', '-db', '--db-url',
help='Show trades stored in database.', help='Show trades stored in database.',

View File

@ -192,8 +192,6 @@ def cron(event, context):
MessageStructure='json' MessageStructure='json'
) )
print(result)
if 'LastEvaluatedKey' in response: if 'LastEvaluatedKey' in response:
return table.scan( return table.scan(
ExclusiveStartKey=response['LastEvaluatedKey'] ExclusiveStartKey=response['LastEvaluatedKey']
@ -207,4 +205,6 @@ def cron(event, context):
while 'LastEvaluatedKey' in response: while 'LastEvaluatedKey' in response:
response = fetch(response, table) response = fetch(response, table)
pass return {
"statusCode": 200
}

View File

@ -82,7 +82,7 @@ def get(event, context):
else: else:
return { return {
"statusCode": response['ResponseMetadata']['HTTPStatusCode'], "statusCode": 404,
"body": json.dumps(response) "body": json.dumps(response)
} }