Add AcceptedAnswer.Text entity to list of holidays, fix some comments

This commit is contained in:
eleksir
2026-03-20 00:09:48 +03:00
parent 0a73bca056
commit 7da7f38e13
5 changed files with 6 additions and 4 deletions

View File

@@ -70,6 +70,8 @@ func parser(data string) ([]string, error) {
// А теперь пробежимся по полученной структуре и вытянем из неё все строки с праздниками.
for _, ass := range s {
for _, entity := range ass.MainEntity {
holidays = append(holidays, entity.AcceptedAnswer.Text)
for _, sugestedAnswer := range entity.SuggestedAnswer {
holidays = append(holidays, sugestedAnswer.Text)
}