Skip to content

Fix modulo condition and newline escape charachter#1

Open
cosmoqain459 wants to merge 1 commit into
KaustubhAnerao:mainfrom
cosmoqain459:fix/logic-errors
Open

Fix modulo condition and newline escape charachter#1
cosmoqain459 wants to merge 1 commit into
KaustubhAnerao:mainfrom
cosmoqain459:fix/logic-errors

Conversation

@cosmoqain459

Copy link
Copy Markdown

I made two changes in the Reddit data streaming.pynb files.
Both are logical errors.

1.% 1 should be % 5 — len(detected_posts) % 1 == 0 is always True, so it saves after every post instead of every 5 as intended.
2./n should be \n — The two print statements at the end use forward slashes (/n) instead of backslashes (\n), so the newlines won't actually render.

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.

1 participant