Update views_api.py

This commit is contained in:
calle 2023-02-23 12:56:56 +01:00 committed by GitHub
parent a24762932c
commit 380747a72b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,6 @@ async def ws_filter_subscribe(websocket: WebSocket):
await websocket.accept()
while True:
json_data = await websocket.receive_text()
# print('### nostrclient', json_data)
try:
data = json.loads(json_data)
filters = data if isinstance(data, list) else [data]