From 20f8027d0176d1c7770706b7eced27fa7bd0a705 Mon Sep 17 00:00:00 2001 From: emile Date: Thu, 11 Jul 2024 21:02:59 +0300 Subject: [PATCH] new --- .../__pycache__/consumers.cpython-310.pyc | Bin 5389 -> 5331 bytes osinaweb/osinacore/consumers.py | 6 ++---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/osinaweb/osinacore/__pycache__/consumers.cpython-310.pyc b/osinaweb/osinacore/__pycache__/consumers.cpython-310.pyc index 70ed9e78c6fc7ac8ed060a5ec5ffca8e28aec620..2a7c33287f20822090537ad6999fa64f6f42b879 100644 GIT binary patch delta 312 zcmeCxx~$2U&&$ij00g#j6Vm30Y~;Jh%Gfvg0c(OXTP;TkTMB10BO^nhUJ6$YdktF+ zYYO)qmRimd_8NvPjx5f}jclLUZZTzK-jbW#z$G_%Cc7si*W}0Ss%)$UMVWaelT|q~ zxGjK&7ny?yv&l0!G#Hg8ALI~b;bLTBo_vR6wvZW2T9c^=!k*m88Nz5W`5vbPko?XW z%4z~s;xIXotCP`W@?{pKC>2a0?nQr#h%H? zGx-R+sw}^AX>mz@Zfa3LQGQxxPHGVcQ2rKMVnIP_UdrV6>>1qVK!GAN5Meqwi9r7%1&DS)8kr(RlJgE(2!qBKFA#_+%%4$IQcU7 zTE@uDjXZXYj24p*@Rl&fPd4SNU<{bNj_(#@-sDdH0>;wGzxdxX)=qvUP{n2fa)SBf wEWtoV^T~Sz6&R~F-xZW)1af{0=`&hR))o$8Y@1vsJb^KHGQY?{W;YR80AOuqk^lez diff --git a/osinaweb/osinacore/consumers.py b/osinaweb/osinacore/consumers.py index 00af9172..0526b6e3 100644 --- a/osinaweb/osinacore/consumers.py +++ b/osinaweb/osinacore/consumers.py @@ -49,10 +49,8 @@ class OnlineUserConsumer(WebsocketConsumer): customer_connections = [] staff_connections = [] for connection in sorted_connections: - if CustomerProfile.objects.filter(user=connection.user): - customer_connections.append(connection) - else: - staff_connections.append(connection) + print('hi') + event = { 'type': 'online_user_connection_handler', 'staff_connections': staff_connections,