Fixed linting
All checks were successful
Build on push / prepare (push) Successful in 7s
Test before pr merge / test-translation-lint (pull_request) Successful in 38s
Test before pr merge / test-lint (pull_request) Successful in 41s
Build on push / build-api (push) Successful in 34s
Build on push / build-redirector (push) Successful in 29s
Build on push / build-web (push) Successful in 55s
Test before pr merge / test-before-merge (pull_request) Successful in 1m42s
All checks were successful
Build on push / prepare (push) Successful in 7s
Test before pr merge / test-translation-lint (pull_request) Successful in 38s
Test before pr merge / test-lint (pull_request) Successful in 41s
Build on push / build-api (push) Successful in 34s
Build on push / build-redirector (push) Successful in 29s
Build on push / build-web (push) Successful in 55s
Test before pr merge / test-before-merge (pull_request) Successful in 1m42s
This commit is contained in:
parent
a26a4841bd
commit
6f9f108f0b
@ -13,7 +13,12 @@ logger = APILogger("api.ws")
|
||||
class AuthenticatedGraphQLTransportWSHandler(GraphQLTransportWSHandler):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, on_connect=self.on_connect, on_disconnect=self.on_disconnect, **kwargs)
|
||||
super().__init__(
|
||||
*args,
|
||||
on_connect=self.on_connect,
|
||||
on_disconnect=self.on_disconnect,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
async def on_connect(ws: WebSocket, message: dict):
|
||||
@ -34,5 +39,3 @@ class AuthenticatedGraphQLTransportWSHandler(GraphQLTransportWSHandler):
|
||||
async def on_disconnect(ws: WebSocket):
|
||||
logger.debug(f"WebSocket connection {ws.state.request_id} closed")
|
||||
return True
|
||||
|
||||
|
||||
|
@ -73,7 +73,11 @@ class Logger:
|
||||
structured_message["request"] = {
|
||||
"url": str(request.url),
|
||||
"method": request.method if request.scope == "http" else "ws",
|
||||
"data": asyncio.create_task(request.body()) if request.scope == "http" else None,
|
||||
"data": (
|
||||
asyncio.create_task(request.body())
|
||||
if request.scope == "http"
|
||||
else None
|
||||
),
|
||||
}
|
||||
return str(structured_message)
|
||||
|
||||
|
@ -6,7 +6,6 @@ import {
|
||||
} from 'src/app/core/base/page.columns';
|
||||
import { TableColumn } from 'src/app/modules/shared/components/table/table.model';
|
||||
import { User } from 'src/app/model/auth/user';
|
||||
import { Group } from 'src/app/model/entities/group';
|
||||
|
||||
@Injectable()
|
||||
export class UsersColumns extends PageColumns<User> {
|
||||
|
Loading…
Reference in New Issue
Block a user