Skip to content

Conversation

@lemikhovalex
Copy link
Collaborator

No description provided.

state.json Outdated
@@ -1 +1 @@
{} No newline at end of file
{"person": 0, "temp_last_update_person": 0, "last_update_person": "2021-06-16 20:14:09.514476+00:00", "genre": 0, "temp_last_update_genre": 0, "last_update_genre": "2021-06-16 20:14:09.310972+00:00", "film_work": 0, "temp_last_update_film_work": 0, "last_update_film_work": "2021-06-16 20:14:09.271850+00:00"} No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

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

а откуда у нас в репе стейт жсон?

except InvalidToken:
pass
ip_address = request.remote_addr
check_rate_limit(key=ip_address)
Copy link
Collaborator

Choose a reason for hiding this comment

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

в целом юзер может сидеть за VPN или сеткой провайдера, поэтому лучше использовать, например, комбинацию ip и user agent

@BigDeepBlue BigDeepBlue mentioned this pull request May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants