The change I propose solves issue #2211 
I hope this is the correct approach.
This commit is contained in:
Lisandro authored and GitHub committed 2019-05-20 11:58:42 -03:00
1 parent f258cbecee
commit bd892556e1
1 file changed
+1
+1
View File
@@ -444,6 +444,7 @@ class AuthAPI(object):
if type(description).__name__ == 'lazyT': if type(description).__name__ == 'lazyT':
description = description.m description = description.m
if not user_id or self.table_user()[user_id]: if not user_id or self.table_user()[user_id]:
description = description.replace('%', '%%')
self.table_event().insert( self.table_event().insert(
description=str(description % vars), origin=origin, user_id=user_id) description=str(description % vars), origin=origin, user_id=user_id)