winfried / HelpIM

*obsoleted* An chat-system for online psycho-social counselling
11 stars 3 forks source link

How can I see which chats are "in use"? #41

Closed pvdv closed 12 years ago

pvdv commented 13 years ago

I need a way to see if a chat is "in use". I mean if somebody is logged in into the chat. For me it would be the best to have a way to check it on all chats. It would be also nice to see how many users are active in the chat.

peritus commented 13 years ago

In the admin, the rooms table should give that information.

pvdv commented 13 years ago

Op 13-07-11 11:39, peritus schreef:

In the admin, the rooms table should give that information.

I would like to have something on the commandline, what checks all chats. So I can see when all chats are not in use, and I can change things. Maybe I can check some table in a database, point is which one. Maybe the tigase database is an idea.

winfried commented 13 years ago

Is it possible to have some kind of django-admin command (from the commandline) to see where chats are going on?

peritus commented 13 years ago

Sure.

pvdv commented 12 years ago

I've made simple scripts: hi-testchat and hi-testchats

winfried commented 12 years ago

Works for now. Might be better to write a proper command in Django- admin for it, because the raw sql approach might break if the database changes in the future.