Libraries refactor and add some sinks #4
|
@ -516,6 +516,7 @@ class Transactions(object):
|
|||
def write_to_es(self, msgtype, cast):
|
||||
cast["type"] = msgtype
|
||||
cast["ts"] = str(datetime.now().isoformat())
|
||||
cast["xtype"] = "tx"
|
||||
self.es.index(index=settings.ES.Index, document=cast)
|
||||
|
||||
def get_remaining(self):
|
||||
|
|
Loading…
Reference in New Issue