jcloude/press/saas/api/team.py

14 lines
320 B
Python

# -*- coding: utf-8 -*-
# Copyright (c) 2020, JINGROW
# For license information, please see license.txt
import jingrow
from press.saas.api import whitelist_saas_api
from time import sleep
@whitelist_saas_api
def info():
team = frappe.local.get_team()
data = team.as_dict()
team.get_pg(data)
return data