1
0
Fork 0

Include comment re load API

master
Philip O'Toole 4 years ago
parent 142180bbe6
commit 42083aa36d

@ -195,6 +195,7 @@ class Node(object):
fd.write(r.content)
def restore(self, file):
# This is the one API that doesn't expect JSON.
conn = sqlite3.connect(file)
r = requests.post(self._load_url(), data='\n'.join(conn.iterdump()))
r.raise_for_status()

Loading…
Cancel
Save