Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions MeteorClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ def add_data(self, collection, id, fields):

def change_data(self, collection, id, fields, cleared):
for key, value in fields.items():
self.data[collection][id][key] = value
if collection in self.data and id in self.data[collection]:
self.data[collection][id][key] = value

for key in cleared:
del self.data[collection][id][key]
if collection in self.data and id in self.data[collection] and key in self.data[collection][id]:
del self.data[collection][id][key]

def remove_data(self, collection, id):
del self.data[collection][id]
Expand Down