Add receivePIN and lookupPIN commands for Wowlet VR

This commit is contained in:
dsc 2021-04-07 01:24:46 +02:00
parent dea2100bd9
commit 39845238fc
4 changed files with 115 additions and 1 deletions

View file

@ -26,7 +26,7 @@ async def _setup_nodes(app: Quart):
global cache
with open('data/nodes.json', 'r') as f:
nodes = json.loads(f.read()).get(settings.COIN_SYMBOL)
cache.execute('JSON.SET', 'nodes', '.', json.dumps(nodes))
await cache.set('nodes', json.dumps(nodes).encode())
async def _setup_user_agents(app: Quart):