mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
[EDB Package Functions] [Functions] Fixed typos:
- 'gettext' should be used as '_' is not defined - Identical expressions should not be used on both sides of a binary operator.
This commit is contained in:
parent
c7afa30d0c
commit
8fe344c268
@ -283,7 +283,7 @@ class EdbFuncView(PGChildNodeView, DataTypeReader):
|
|||||||
if edbfnid is not None:
|
if edbfnid is not None:
|
||||||
if len(rset['rows']) == 0:
|
if len(rset['rows']) == 0:
|
||||||
return gone(
|
return gone(
|
||||||
errormsg=_("Could not find the function")
|
errormsg=gettext("Could not find the function")
|
||||||
)
|
)
|
||||||
row = rset['rows'][0]
|
row = rset['rows'][0]
|
||||||
return make_json_response(
|
return make_json_response(
|
||||||
@ -479,7 +479,7 @@ class EdbFuncView(PGChildNodeView, DataTypeReader):
|
|||||||
|
|
||||||
arg = ''
|
arg = ''
|
||||||
|
|
||||||
if argmode and argmode:
|
if argmode:
|
||||||
arg += argmode + " "
|
arg += argmode + " "
|
||||||
if argname:
|
if argname:
|
||||||
arg += argname + " "
|
arg += argname + " "
|
||||||
|
Loading…
Reference in New Issue
Block a user