zieren / eltern-emailer

Unofficial email interface for *.eltern-portal.org and schulmanager-online.de.
https://zieren.de/software/eltern-emailer
GNU General Public License v3.0
3 stars 2 forks source link

Error in readNoticeBoard: Found 4 subjects, but 6 contents #77

Open matgoebl opened 3 hours ago

matgoebl commented 3 hours ago

readNoticeBoard fails, because attachments are counted as content items.

error: Error in processElternPortal:                                                                                                                                   
Error: Found 4 subjects, but 6 contents                                                                                                                                                    
    at readNoticeBoard (/home/pptruser/elternportal.js:512:11)                                                                                                                             
    at async processElternPortal (/home/pptruser/elternportal.js:948:3)                                                                                                                    
    at async tryProcess (/home/pptruser/main.js:329:5)                                                                                                                                     
    at async main (/home/pptruser/main.js:425:11)                                                                                                                                          
    at async /home/pptruser/main.js:486:22

Changing the selector from ~ to + works: 2024-11-16-091537_903x414_scrot

matgoebl commented 2 hours ago

My current working solution is https://github.com/zieren/eltern-emailer/commit/8749ed73d13d67fdd49a528404743dd143ffd241

matgoebl commented 48 minutes ago

Oh - bad! This produces duplicates :-( Some id tracking issue, I guess.