Fixed saving stats events (field conversion ignored original field name)

This commit is contained in:
Adolfo Gómez García 2022-02-07 15:54:38 +01:00
parent ba7b1c0198
commit c3531f3e7e

View File

@ -211,11 +211,12 @@ class StatsManager(metaclass=singleton.Singleton):
try:
def getKwarg(fld: str) -> str:
val = None
for i in FLDS_EQUIV[fld]:
val = kwargs.get(i)
if val is not None:
break
val = kwargs.get(fld)
if val is None:
for i in FLDS_EQUIV[fld]:
val = kwargs.get(i)
if val is not None:
break
return val or ''
fld1 = getKwarg('fld1')