diff options
Diffstat (limited to 'market.py')
-rw-r--r-- | market.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -85,6 +85,8 @@ class Market: | |||
85 | conn.set(key, log, ex=31*24*60*60) | 85 | conn.set(key, log, ex=31*24*60*60) |
86 | key = "/cryptoportfolio/{}/latest/{}".format(self.market_id, type_) | 86 | key = "/cryptoportfolio/{}/latest/{}".format(self.market_id, type_) |
87 | conn.set(key, log) | 87 | conn.set(key, log) |
88 | key = "/cryptoportfolio/{}/latest/date".format(self.market_id) | ||
89 | conn.set(key, date.isoformat()) | ||
88 | except Exception as e: | 90 | except Exception as e: |
89 | print("impossible to store report to redis: {}; {}".format(e.__class__.__name__, e)) | 91 | print("impossible to store report to redis: {}; {}".format(e.__class__.__name__, e)) |
90 | 92 | ||