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 more contents than subjects in archive, do not terminate #70

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

matgoebl
Copy link

fixes #69

@@ -477,10 +477,10 @@ async function readNoticeBoard(page, previousHashes) {
const subjects = await page.$$eval('div.well h4', hh => hh.map(h => h.innerHTML));
const currentContents = await page.$$eval('div.well h4 ~ p', pp => pp.map(p => p.outerHTML));
const archivedContents =
await page.$$eval('div.well div.row ~ div.row p', pp => pp.map(p => p.outerHTML));
await page.$$eval('div.well div.row ~ div.row p:first-child', pp => pp.map(p => p.outerHTML));
Copy link
Author

Choose a reason for hiding this comment

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

I'm not 100% sure, that this works for other portals as well.
And currently I've only one message in archive, so I cannot check, what happens if there are more than one.

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.

Error in Notice board Archive: Found 2 subjects, but 3 contents
1 participant