lopotras / WoltPartner-Schedule

A little help to get the Wolt shifts you want
2 stars 1 forks source link

in Slovakia, new shifts appear at different day #8

Open patressxd1 opened 3 years ago

patressxd1 commented 3 years ago

So in Slovakia, new shifts appear at 10:00 every Wednesday. What should I do to make the program work with my schedule?

lopotras commented 3 years ago

I will make an update for a similar situation for Munich. I'll make a configuration for you also when it's done.

lopotras commented 3 years ago

I opened new branch called "munich", that has a fix to your problem. Unfortunately, because of how my shifts show up I cannot really verify if everything works properly.

I haven't updated the code generator yet, so the explanation of how to manually insert the shifts into the script are written in the comments in woltPartnerBooking.py.

Also you will need to change f.autoStartMunich() to f.startAt(10) in woltPartnerBooking.py to account for your new shifts showing up at 10:00.

Hit me up with any questions and feedback and let me know if it works on Wednesday, then I will update the code generator to do it automatically for your city as well.

lopotras commented 3 years ago

Did that work out for you?

patressxd1 commented 3 years ago

i'm actually not sure. i've been in a motorcycle accident so I couldn't try the bot. Now that I'm back to normal I'm trying to use the bot again. The problem is that in woltPartnerBooking.py you say that monday is 8 (if there's extra saturday) and 7 (if there's no extra saturday). My problem with that is that I'm trying to understand how the script works. My shifts appear on wednesdays so do I have to write monday as a 6(we don't have an extra saturday in the app)? since it is the sixth day in the upper row of days. And how does it switch to other days after that? Why is the next day a lower number?

lopotras commented 3 years ago

Sorry for the delay.

With all the shifts appearing on one day there are more shifts in a row than there is space on the screen. After new shifts show up, the script moves the days bar to the left to be able to access all the new days. The days in the script are then counted from the right, that's why the next day will have a lower number.