https://supertokens.com/ logo
Title
s

shorthair_[]

12/26/2022, 3:24 PM
im trying to output the status of users based on if they are online.
r

rp

12/26/2022, 3:25 PM
hey @shorthair_[]
whats the logic that you have implemented?
s

shorthair_[]

12/26/2022, 3:26 PM
hey
then when i signout ....
r

rp

12/26/2022, 3:28 PM
so if session is None, then it means that the user has logged out.
so in your filter, you are doing
user_id=user_id
. So where are you getting that user_id from?
s

shorthair_[]

12/26/2022, 3:29 PM
lemme show you
r

rp

12/26/2022, 3:29 PM
see your code.. the else branch deosn't init the user_id. And there is no way for you to know the user_id cause there is no session
s

shorthair_[]

12/26/2022, 3:30 PM
🤦‍♂️
true
tnx rp
might have to rework the whole thing
r

rp

12/26/2022, 3:31 PM
Yup