buggix
This commit is contained in:
parent
0a076f313c
commit
e384efe28e
@ -279,10 +279,10 @@ dbname = get_module_dbname('{{modulename}}')
|
|||||||
async with db.sqlorContext(dbname) as sor:
|
async with db.sqlorContext(dbname) as sor:
|
||||||
{% if logined_userid or logined_userorgid %}
|
{% if logined_userid or logined_userorgid %}
|
||||||
ns1 = {
|
ns1 = {
|
||||||
{% logined_userorgid %}
|
{% if logined_userorgid %}
|
||||||
"{{logined_userorgid}}": userorgid,
|
"{{logined_userorgid}}": userorgid,
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% logined_userid %}
|
{% if logined_userid %}
|
||||||
"{{logined_userid}}": userid,
|
"{{logined_userid}}": userid,
|
||||||
{% endif %}
|
{% endif %}
|
||||||
"id": params_kw.id
|
"id": params_kw.id
|
||||||
@ -299,6 +299,7 @@ async with db.sqlorContext(dbname) as sor:
|
|||||||
"message":"Record no exist or with wrong ownership"
|
"message":"Record no exist or with wrong ownership"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
r = await sor.U('{{summary[0].name}}', ns)
|
r = await sor.U('{{summary[0].name}}', ns)
|
||||||
debug('update success');
|
debug('update success');
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user