forked from shaba/openuds
Fixed saving stats events (field conversion ignored original field name)
This commit is contained in:
parent
ba7b1c0198
commit
c3531f3e7e
@ -211,11 +211,12 @@ class StatsManager(metaclass=singleton.Singleton):
|
|||||||
try:
|
try:
|
||||||
|
|
||||||
def getKwarg(fld: str) -> str:
|
def getKwarg(fld: str) -> str:
|
||||||
val = None
|
val = kwargs.get(fld)
|
||||||
for i in FLDS_EQUIV[fld]:
|
if val is None:
|
||||||
val = kwargs.get(i)
|
for i in FLDS_EQUIV[fld]:
|
||||||
if val is not None:
|
val = kwargs.get(i)
|
||||||
break
|
if val is not None:
|
||||||
|
break
|
||||||
return val or ''
|
return val or ''
|
||||||
|
|
||||||
fld1 = getKwarg('fld1')
|
fld1 = getKwarg('fld1')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user