(plugin)
| 19 | |
| 20 | @plugin.method('listsnapshots') |
| 21 | def return_moves(plugin): |
| 22 | result = [] |
| 23 | if os.path.exists('snaps.json'): |
| 24 | with open('snaps.json', 'r') as f: |
| 25 | jd = f.read() |
| 26 | result = json.loads('[' + jd[:-1] + ']') |
| 27 | return {'balance_snapshots': result} |
| 28 | |
| 29 | |
| 30 | plugin.run() |