mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-23 01:08:53 +00:00
CheckResults: simplify self._data
This commit is contained in:
@ -12,9 +12,6 @@ class CheckResults:
|
||||
self.uri = uri
|
||||
self.storage_index = storage_index
|
||||
self.problems = []
|
||||
self._data = {"count-corrupt-shares": 0,
|
||||
"list-corrupt-shares": [],
|
||||
}
|
||||
self.summary = ""
|
||||
self.report = []
|
||||
|
||||
@ -34,7 +31,7 @@ class CheckResults:
|
||||
def set_needs_rebalancing(self, needs_rebalancing):
|
||||
self.needs_rebalancing_p = bool(needs_rebalancing)
|
||||
def set_data(self, data):
|
||||
self._data.update(data)
|
||||
self._data = data
|
||||
def set_summary(self, summary):
|
||||
assert isinstance(summary, str) # should be a single string
|
||||
self.summary = summary
|
||||
|
Reference in New Issue
Block a user