Add AcceptedAnswer.Text entity to list of holidays, fix some comments
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user