[fix] [hot] make_random
This commit is contained in:
parent
84efee471b
commit
bf24fb2898
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ def get_random(doctype, filters=None):
|
|||
condition = []
|
||||
if filters:
|
||||
for key, val in filters.items():
|
||||
condition.append("%s='%s'" % (key, val.replace("'", "\'")))
|
||||
condition.append("%s='%s'" % (key, str(val).replace("'", "\'")))
|
||||
if condition:
|
||||
condition = " where " + " and ".join(condition)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue