def set(self, l): '''Store a list of key/value/timestamp dicts''' self._db.update(l) CMOSRatesNamespace.update_trigger()
def set(self, l): '''Store a list of key/value/timestamp dicts''' for o in l: self._store.setdefault(o['key'], []).append([o['timestamp'], o['value']]) CMOSRatesNamespace.update_trigger()