- 1
- 2
- 3
- 4
- 5
def create_delta(self, timestamp, subs: set):
sym_subs = subs.symmetric_difference(self.subs)
added_subs = sym_subs.difference(self.subs)
removed_subs = sym_subs.difference(subs)
return DeltaEntry(timestamp, added_subs, removed_subs)
yet_another_one_shit 21.04.2018 17:15 # 0