golovencoserghei / meeper-api

0 stars 0 forks source link

Added cron command to sync week schedules #19

Closed realtek2 closed 11 months ago

realtek2 commented 11 months ago

tested with:

// changed 2 next weeks {"1": {"1": ["08", "09", 10, 11, 12], "2": [10, 11, 12, 16, 17, 18], "4": ["08", "09", 10]}, "2": {"1": ["08", "09", 20, 11, 12], "2": [10, 11, 12, 16, 17, 18], "4": ["08", "09", 10]}, "3": {"1": ["08", "09", 10, 11, 12], "2": [10, 11, 12, 16, 17, 18], "5": ["08", "09", 10]}}

// only two weeks {"1": {"1": ["08", "09", 10, 11, 12], "2": [10, 11, 12, 16, 17, 18], "4": ["08", "09", 10]}, "2": {"1": ["08", "09", 10, 11, 12], "2": [10, 11, 12, 16, 17, 18], "4": ["08", "09", 10, 20]}}

// last week changed {"1": {"1": ["08", "09", 10, 11, 12], "2": [10, 11, 12, 16, 17, 18], "4": ["08", "09", 10]}, "2": {"1": ["08", "09", 10, 11, 12], "2": [10, 11, 12, 16, 17, 18], "4": ["08", "09", 10]}, "3": {"1": ["08", "09", 10, 11, 12], "2": [10, 11, 12, 16, 17, 18], "5": ["08", "09", 10]}}

// 4 weeks {"1": {"1": ["08", "09", 10, 11, 12], "2": [10, 11, 12, 16, 17, 18], "4": ["08", "09", 10]}, "2": {"1": ["08", "09", 10, 11, 12], "2": [10, 11, 12, 16, 17, 18], "4": ["08", "09", 10]}, "3": {"1": ["08", "09", 10, 11, 12], "2": [10, 11, 12, 16, 17, 18], "5": ["08", "09", 10]}, "4": {"3": ["08", "09", 10, 11, 12], "6": [10, 11, 12, 16, 17, 18], "7": ["08", "09", 10]}}

// default {"1": {"1": ["08", "09", 10, 11, 12], "2": [10, 11, 12, 16, 17, 18], "4": ["08", "09", 10]}, "2": {"1": ["08", "09", 10, 11, 12], "2": [10, 11, 12, 16, 17, 18], "4": ["08", "09", 10]}}