Using Pillar's subquery module.

This commit is contained in:
2016-10-18 15:35:23 +02:00
parent b0b5be0df8
commit 70f756fb7d
5 changed files with 9 additions and 46 deletions

View File

@@ -5,10 +5,11 @@ from flask import Blueprint, render_template, url_for
import flask_login
from pillar.api.utils import jsonify
import pillar.web.subquery
from pillar.web.system_util import pillar_api
import pillarsdk
from attract import current_attract, subquery
from attract import current_attract
from attract.node_types.task import node_type_task
from attract.node_types.shot import node_type_shot
@@ -47,7 +48,7 @@ def index():
node_type_task_name = node_type_task['name']
node_type_shot_name = node_type_shot['name']
for act in activities['_items']:
act.actor_user = subquery.get_user_info(act.actor_user)
act.actor_user = pillar.web.subquery.get_user_info(act.actor_user)
act.project = id_to_proj[act.project]
if act.node_type == node_type_task_name: