MCPcopy
hub / github.com/mandarons/icloud-docker / has_errors

Method has_errors

src/sync_stats.py:96–104  ·  view source on GitHub ↗

Check if there were any errors in the sync. Returns: True if either drive or photos had errors

(self)

Source from the content-addressed store, hash-verified

94 return drive_activity or photo_activity
95
96 def has_errors(self) -> bool:
97 """Check if there were any errors in the sync.
98
99 Returns:
100 True if either drive or photos had errors
101 """
102 drive_errors = self.drive_stats.has_errors() if self.drive_stats else False
103 photo_errors = self.photo_stats.has_errors() if self.photo_stats else False
104 return drive_errors or photo_errors
105
106 def total_duration_seconds(self) -> float:
107 """Calculate total sync duration.

Callers 1

Calls 1

has_errorsMethod · 0.45

Tested by 1