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

Fix Total Message Count Calculation to Account for Headers #53

Merged
merged 2 commits into from
Dec 10, 2023

Conversation

ThorntonMatthewD
Copy link
Collaborator

@ThorntonMatthewD ThorntonMatthewD commented Dec 10, 2023

Fixes #52

Summary

Takes into account the headers added to each post (ex: "HackGreenville Events for the week of December 10 - 1 of 2") whenever calculating the total numbers of messages that will be needed in order to contain all of the events for a given week.

I chose 61 as the character count for the buffer to handle the longest header I'd anticipate seeing:
HackGreenville Events for the week of September NN - YY of ZZ

Before/After For the Week of December 10th:

Post Before After
1 Screenshot_2023-12-09_21-04-29 Screenshot_2023-12-09_21-05-24
2 Screenshot_2023-12-09_21-04-37 Screenshot_2023-12-09_21-05-32

@ThorntonMatthewD ThorntonMatthewD marked this pull request as ready for review December 10, 2023 02:06
@ThorntonMatthewD ThorntonMatthewD self-assigned this Dec 10, 2023
Copy link
Member

@oliviasculley oliviasculley left a comment

Choose a reason for hiding this comment

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

Looks great! I can tell this one was fun to figure out, nice work!

@ThorntonMatthewD ThorntonMatthewD merged commit 6039e5f into hackgvl:dev Dec 10, 2023
1 check passed
@ThorntonMatthewD ThorntonMatthewD deleted the fix-total-posts-count branch December 10, 2023 02:18
@ThorntonMatthewD
Copy link
Collaborator Author

Thank you, @oliviasculley!

This should hopefully also lessen the impact of #48 while work is done to get the new Events API stood up.

Screenshot_2023-12-09_21-23-19

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.

Paginated Posts Showing Incorrect Total: "2 of 1"
2 participants