Beispiel #1
0
 def set(self, l):
     '''Store a list of key/value/timestamp dicts'''
     self._db.update(l)
     CMOSRatesNamespace.update_trigger()
     ChannelRatesNamespace.update_trigger()
     CMOSRatesTestNamespace.update_trigger()
     ScreamersNamespace.update_trigger()
Beispiel #2
0
    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()
        ChannelRatesNamespace.update_trigger()
        CMOSRatesTestNamespace.update_trigger()
        ScreamersNamespace.update_trigger()