feat: add experimental template autostop requirement template settings UI (#9417)

This commit is contained in:
Dean Sheather
2023-08-30 13:41:27 -07:00
committed by GitHub
parent d2462e5b88
commit 1de61246a3
21 changed files with 568 additions and 126 deletions

View File

@ -83,7 +83,7 @@ func WeekdaysToBitmap(days []string) (uint8, error) {
// BitmapToWeekdays converts a bitmap to a list of weekdays in accordance with
// the schedule package's rules (see above).
func BitmapToWeekdays(bitmap uint8) []string {
var days []string
days := []string{}
for i := 0; i < 7; i++ {
if bitmap&(1<<i) != 0 {
switch i {