def snapshot_on_sync(self):
    if self.config.automated_snapshot:
        self.do_snapshot('CrowdAnki: Snapshot on sync')
def snapshot_on_sync(self):
    if self.config.automated_snapshot:
        self.do_snapshot('CrowdAnki: Snapshot on sync')