Check if there were any errors in the sync. Returns: True if either drive or photos had errors
(self)
| 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. |