diff --git a/src/news.c b/src/news.c index 56d98e8d..35eeab26 100644 --- a/src/news.c +++ b/src/news.c @@ -59,6 +59,8 @@ news_generate_match(const LiveGame *live_game) gint title_id, subtitle_id, article_id; NewsPaperArticle new_article; + printf("gen fix %s %s\n", live_game->fix->teams[0]->name, live_game->fix->teams[1]->name); + token_rep_news[0] = g_ptr_array_new(); token_rep_news[1] = g_ptr_array_new(); diff --git a/src/start_end.c b/src/start_end.c index b9adda64..891ed153 100644 --- a/src/start_end.c +++ b/src/start_end.c @@ -62,7 +62,7 @@ WeekFunc end_week_round_funcs[] = /* {end_week_round_results, end_week_round_sort_tables, */ /* end_week_round_update_fixtures, NULL}; */ {end_week_round_results, end_week_round_sort_tables, - end_week_round_update_fixtures, end_week_round_generate_news, NULL}; + end_week_round_generate_news, end_week_round_update_fixtures, NULL}; /** Array of functions called when a week round is started. */ @@ -406,6 +406,7 @@ end_week_round_results(void) g_array_index(acp(i)->fixtures, Fixture, j).week_round_number == week_round && g_array_index(acp(i)->fixtures, Fixture, j).attendance == -1) { + usr_idx = fixture_user_team_involved(&g_array_index(acp(i)->fixtures, Fixture, j)); if(usr_idx == -1) diff --git a/support_files/news/news_de.xml b/support_files/news/news_de.xml index db75ce69..073ace2e 100644 --- a/support_files/news/news_de.xml +++ b/support_files/news/news_de.xml @@ -70,6 +70,13 @@