Skip to navigation
Sync data between 2 databases use hash compare
07.07.14
in python 3.2 import hashlib import json a = {"key1":"dude","key2":"fred","key3":{"nkey":"nested"}} checksum = hashlib.md5(json.dumps(a).encode("utf")).hexdigest() before you update the sync db,check the saved checksum within the database entry and compare it with a new checksum. https://docs.python.org/3.2/library/json.html
http://stackoverflow.com/questions/13259691/convert-string-to-md5
Reply
Anonymous
Information Epoch 1762451729
Data dominates.
Home
Notebook
Contact us