def partialsync(): global time_now #Running Partial Sync Insert(azure_client, time_now) #updating time of sync to compare to bucket data time_now = datetime.now() return 'Partial Sync Done'
def selBtnEvent(self): for widget in self.workFrm.winfo_children(): widget.destroy() if self.selV.get() == 1: Merge(self) if self.selV.get() == 2: Split(self) if self.selV.get() == 3: Insert(self) if self.selV.get() == 4: Delete(self)
def fullsync(): #cleaning up the graph callback = azure_client.submitAsync("g.V().drop()") if callback.result() is not None: print("Cleaned up the graph!") #Running full sync Insert(azure_client) #saving time of full sync to compare to bucket data global time_now time_now = datetime.now() return "Full Sync Done and a Partial Sync will occur in 24 hours"
def __init__(self, path_to_database: str): self.db_get = Position(path_to_database) self.db_insert = Insert(path_to_database, None)
def partial_sync(self): Insert(self.azure_client, self.time) self.time = datetime.now()
def full_sync(self): cleanup_graph(self.azure_client) Insert(self.azure_client) self.time = datetime.now()