2012-12-12 15:25:51 +05:30
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2012-12-12 14:42:17 +05:30
|
|
|
import webnotes, json
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
for p in webnotes.conn.sql("""select name, recent_documents from
|
|
|
|
tabProfile where ifnull(recent_documents,'')!=''"""):
|
2012-12-12 15:25:51 +05:30
|
|
|
if not '~~~' in p[1] and p[1][0]=='[':
|
2012-12-12 14:42:17 +05:30
|
|
|
webnotes.cache().set_value("recent:" + p[0], json.loads(p[1]))
|