Skip to content

Commit

Permalink
feat: add saturday dars hours for rec
Browse files Browse the repository at this point in the history
  • Loading branch information
serafdev committed Jul 6, 2024
1 parent 290418e commit 6105aaf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/rec/rec_iqama.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,20 @@ func NewRecordConfigDataS() *RecordConfigDataS {
}

fajr := today.Fajr.Iqama
maghrib := today.Maghrib.Iqama
todaysData := &[]RecordConfig{
{
Description: "Fajr Recording",
StartTime: fajr,
Duration: DarsRecordDuration,
RecordingDays: EveryDay,
},
{
Description: "Saturday Dars",
StartTime: maghrib,
Duration: 1*time.Hour + 30*time.Minute,
RecordingDays: []time.Weekday{time.Saturday},
},
}
fullData := append(*rc.data, *todaysData...)
rc.data = &fullData
Expand Down

0 comments on commit 6105aaf

Please sign in to comment.