|
|
|
@ -74,7 +74,8 @@ class AnalyticUnitManager:
|
|
|
|
|
if task['type'] == 'PUSH': |
|
|
|
|
# TODO: do it a better way |
|
|
|
|
res = await worker.recieve_data(data, payload['cache']) |
|
|
|
|
res.update({ 'analyticUnitId': analytic_unit_id }) |
|
|
|
|
if res: |
|
|
|
|
res.update({ 'analyticUnitId': analytic_unit_id }) |
|
|
|
|
return res |
|
|
|
|
elif task['type'] == 'LEARN': |
|
|
|
|
if 'segments' in payload: |
|
|
|
|