def sync_server(self): server = RemoteServer(self.profile['syncKey'], self.profile['hostNum']) client = Syncer(self.col, server) res = client.sync() if res in ['success', 'noChanges']: pass elif res == 'fullSync': print('FULL SYNC') client = FullSyncer(self.col, self.profile['syncKey'], server.client, self.profile['hostNum']) client.download() self.col.reopen()