Rollover for weekly notes?

Hi everyone, I’ve been quite interested in the plugin ‘rollover’ that automatically transfers unchecked tasks from previous daily note to the current daily note.
I was wondering if there was a way to tinker with the code to make the plugin work for weekly notes ?

I use daily notes for journaling, and all my tasks go in a weekly note (automatically created on the first day of each week), with a general “to do” section, and a heading per day, so that i can then assign tasks to each specific day.

I would love to be able to just run the “roll command” and have it take all the unfinished tasks from the previous week’s note and put them all under the “to do” heading of the current week’s note.

Does anybody know if this is feasible ?
Or if there is another to achieve this, with templater maybe ?

Thanks a lot

You might check if the Tasks plugin has a relevant feature.

I’ve tried to find some information but came back empty handed. I’m checking dataview to see if I could make something out of it