Commit 2c2ce52a by rongjun

init

parent 5fa3c09f
......@@ -80,7 +80,6 @@ def cta(timestamp, last_price, task):
TaskNotify.objects.create(task_id=task.get('id'), point=point_val)
if over:
Task.remove_task(task)
logger.error(content)
send(title, content, task.get('emails'))
except IntegrityError:
pass
......@@ -93,6 +92,7 @@ def push(request):
data = request.GET.get('data')
data = data.split(',')
print(data)
send('test', 'test', ['403209670@qq.com'])
timestamp = int(data[0].split('.')[0])
instrument = data[1]
last_price = Decimal(data[2])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment