mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
[cache] Fixing json.dumps for timestamp (#4240)
This commit is contained in:
parent
7b76356182
commit
8175e19f72
@ -289,7 +289,7 @@ class BaseViz(object):
|
|||||||
self.status != utils.QueryStatus.FAILED):
|
self.status != utils.QueryStatus.FAILED):
|
||||||
cached_dttm = datetime.utcnow().isoformat().split('.')[0]
|
cached_dttm = datetime.utcnow().isoformat().split('.')[0]
|
||||||
try:
|
try:
|
||||||
cache_value = json.dumps({
|
cache_value = self.json_dumps({
|
||||||
'data': data,
|
'data': data,
|
||||||
'dttm': cached_dttm,
|
'dttm': cached_dttm,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user