2013-11-20 07:29:58 +00:00
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
2013-08-05 09:29:54 +00:00
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
2012-12-12 09:55:51 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2012-12-12 09:12:17 +00:00
|
|
|
import webnotes, json
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
for p in webnotes.conn.sql("""select name, recent_documents from
|
|
|
|
tabProfile where ifnull(recent_documents,'')!=''"""):
|
2012-12-12 09:55:51 +00:00
|
|
|
if not '~~~' in p[1] and p[1][0]=='[':
|
2012-12-12 09:12:17 +00:00
|
|
|
webnotes.cache().set_value("recent:" + p[0], json.loads(p[1]))
|