Fix facts method doc

This commit is contained in:
redref
2017-03-23 22:05:59 +01:00
parent 484727b62c
commit 4b96cfe196

View File

@@ -680,8 +680,8 @@ def fact(env, fact, value):
:type env: :obj:`string` :type env: :obj:`string`
:param fact: Find all facts with this name :param fact: Find all facts with this name
:type fact: :obj:`string` :type fact: :obj:`string`
:param fact: Find all facts with this value :param value: Find all facts with this value
:type fact: :obj:`string` :type value: :obj:`string`
""" """
envs = environments() envs = environments()
check_env(env, envs) check_env(env, envs)
@@ -717,12 +717,12 @@ def fact_ajax(env, node, fact, value):
:param env: Searches for facts in this environment :param env: Searches for facts in this environment
:type env: :obj:`string` :type env: :obj:`string`
:param fact: Find all facts for this node :param node: Find all facts for this node
:type fact: :obj:`string` :type node: :obj:`string`
:param fact: Find all facts with this name :param fact: Find all facts with this name
:type fact: :obj:`string` :type fact: :obj:`string`
:param fact: Find all facts with this value :param value: Filter facts whose value is equal to this
:type fact: :obj:`string` :type value: :obj:`string`
""" """
draw = int(request.args.get('draw', 0)) draw = int(request.args.get('draw', 0))