Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deduplication #8

Merged
merged 2 commits into from Nov 15, 2021
Merged

Add deduplication #8

merged 2 commits into from Nov 15, 2021

Conversation

serhii73
Copy link
Collaborator

No description provided.

@serhii73
Copy link
Collaborator Author

    with lock:
        message = request.json.get('message')
        id = request.json.get('id')
        if id and not id in tr_id:
            messages.append(message)
            tr_id.append(id)
        else:
            messages.append(message)

That's working, it looks like the id could be None.

Copy link
Owner

@nestoroprysk nestoroprysk left a comment

Choose a reason for hiding this comment

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

Good job!

@nestoroprysk nestoroprysk merged commit 814b393 into master Nov 15, 2021
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.

None yet

2 participants