Using Pillar's subquery module.
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user