Hi,I want to add that this scenario is rare. It happened only 3 times in the last year. And there are thousands of users using the site. But still it happens.Thanks,On Mon, Jul 8, 2024 at 3:58 AM אורי <u...@speedy.net> wrote:Hi,We are using Django for our website. I found out there is a problem. Sometimes the site finds that a user's profile picture is not valid. For example if it's black only. This is done via cron job. If the program finds that a user's profile pictures is invalid, it removed the photo from the profile and deactivate the user. But in the same time the user might access the website. His last visit time is saved to the database, and if the profile was active then it saves it as active. So it saves the profile is active after deactivating it by the cron job. The result is that a user who is not valid (=doesn't have a profile picture) is active on the database, after he has been deactivated. Is there something I can do to prevent this? This is a bug, and we have checks for this and an error message is sent to me (the admin). But I would like to know if there is something I can do to prevent this.By the way, it may also happen that the user will use the site and it will save his picture again, so he will still have a profile picture after it has been removed from his profile. This is also a bug.Our project is open source and you can see the code at https://github.com/speedy-net/speedy-netThanks,Uri Rodberg, Speedy Net.אורי
--
You received this message because you are subscribed to the Google Groups "PyWeb-IL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyweb-il+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyweb-il/CABD5YeG6UQLtF4YH4xANvXt87%2B1R_J992%3DsYHM1h3u1KfOKkFg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyweb-il/CANDudSdDi9mdOSW2A8a5CkiDYZ_YKDqKBLG3noRB%2Bx2ch4%3D8WA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyweb-il/CABD5YeHOZd6F46jN3HpxaTWK8zrTJJH2rCLLRi-BL6i_gaf%2B-w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyweb-il/CANDudSdgwiMHPqStKQJdoCek3ssUE1mfTDX8gzuangZpSxOAbg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyweb-il/CABD5YeF8VMuZDf4fdziM7B7i9qmD2r5jyD5%3DYNX4r-qbq%3DgyWw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyweb-il/CANDudSegCiDqT37odwUtBZxmLhWeq_pB-ZKSPQHBQm0L-sOdrQ%40mail.gmail.com.