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