Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Explicitly set snose tag during sync
Because otherwise it gets removed - this is due to Simperium changes that It would be nicer to not remove other tags if set, but I can live with this |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | master |
| Files: | files | file ages | folders |
| SHA3-256: |
f26f676e5d6cd680b5a0c5888fec3166 |
| User & Date: | simon 2018-10-18 19:58:08 |
Context
|
2018-10-18
| ||
| 20:13 | Update README to reflect --file and other recent changes. check-in: 36abba8d1a user: simon tags: master, trunk | |
| 19:58 |
Explicitly set snose tag during sync
Because otherwise it gets removed - this is due to Simperium changes that It would be nicer to not remove other tags if set, but I can live with this | |
| 19:32 | Tweak command line args more to suit --file check-in: bdaac3057a user: simon tags: master, trunk | |
Changes
Changes to snose.py.
| ︙ | ︙ | |||
281 282 283 284 285 286 287 |
with open(name, 'r') as f:
content = f.read()
except IOError as e:
print("Failed to read local note %s" % name)
print("Skipping synchronisation for this note")
else:
try:
| | | 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 |
with open(name, 'r') as f:
content = f.read()
except IOError as e:
print("Failed to read local note %s" % name)
print("Skipping synchronisation for this note")
else:
try:
returned = snclient.update_note({'key': local['key'], 'version': local['version'], 'content': content, 'modifydate': sysmodifydate, 'tags': ['snose'] })
print("Updated remote version of %s" % name)
except IOError as e:
print("Failed to update remote verison of local note %s" % name)
else:
#Get returned metadata
snose[name]['version'] = returned[0]['version']
snose[name]['modifydate'] = sysmodifydate #Use local value to avoid differences in accuracy (decimal places. etc) between local and remote timestamps
|
| ︙ | ︙ |