Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Comments

last_connection and creation date feature#14

Open
Drumor wants to merge 6 commits intomasterfrom
user_last_connection_feature
Open

last_connection and creation date feature#14
Drumor wants to merge 6 commits intomasterfrom
user_last_connection_feature

Conversation

@Drumor
Copy link
Contributor

@Drumor Drumor commented Nov 14, 2018

I wrote this to detect inactive users (well to read that they are inactive).
If it's useless, you can delete this branch.

return self.screens.throughTo.subscriptions

def reconnect_since_creation(self):
if self.creation_date is None or self.last_connection is None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So any existing user will never be considered to have been connected ? This is a tricky case that must be handle, my suggestion would be to set the creation_date of all existing users to the database update date.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants