Skip to content

Commit

Permalink
PEP8: missing space
Browse files Browse the repository at this point in the history
  • Loading branch information
rubik committed Apr 14, 2016
1 parent ce4e8dc commit ae8b12f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion history/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def profit_view(request):
# get data
data = {}
for t in Trade.objects.filter(symbol=symbol, status='fill').order_by('-created_on').all():
date = datetime.datetime.strftime(t.created_on,'%Y-%m-%d')
date = datetime.datetime.strftime(t.created_on, '%Y-%m-%d')
if date not in data.keys():
data[date] = {'buyvol': [], 'sellvol': [], 'buy': [], 'sell': [], 'bal': 0.00}
data[date][t.type].append(t.price)
Expand Down

0 comments on commit ae8b12f

Please sign in to comment.