Increment 'schedule' Modules Day Attribute With Variable In Python
I'm very new to Python so forgive me if my terminology in the title or body of this question is incorrect. So this is how you'd normally use schedule to fire something off: schedul
Solution 1:
That third element in the expression must be a time indicator or unit. The dangerous way is to build the command string you want (see this tutorial link, example 7), and then use literal_eval
to execute the command.
Another possibility is to put the elements you want into your list, rather than their display names:
day_scheduler_list = [
schedule.every().sunday,
schedule.every().monday,
...
]
...
day_scheduler_list[i].at(str(xlsxSheet.cell_value(i+18,1))).do(job)
Post a Comment for "Increment 'schedule' Modules Day Attribute With Variable In Python"