This website works better with JavaScript.
Home
Explore
Help
Sign In
anoopmb
/
frappe
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
[hotfix] frappe.db.set_temp
version-14
Anand Doshi
10 years ago
parent
6d16ba450f
commit
3aacd3015f
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
frappe/database.py
+ 1
- 1
frappe/database.py
View File
@@ -625,7 +625,7 @@ class Database:
def set_temp(self, value):
"""Set a temperory value and return a key."""
key = frappe.generate_hash()
frappe.cache().hset("temp", value)
frappe.cache().hset("temp",
key,
value)
return key
def get_temp(self, key):
Write
Preview
Loading…
Cancel
Save