Przeglądaj źródła

Enable average updates

Toni Fadjukoff 6 lat temu
rodzic
commit
19cad836ee
1 zmienionych plików z 2 dodań i 3 usunięć
  1. 2 3
      bot.go

+ 2 - 3
bot.go Wyświetl plik

@@ -330,10 +330,9 @@ func (app *App) AutomateSection(title string) error {
330 330
 			}
331 331
 
332 332
 			if message != "" {
333
-				fmt.Println(changedWikiText)
334 333
 
335
-				//_, err := wiki.EditWikiPageSection(title, section.index, changedWikiText,
336
-				//	fmt.Sprintf("Calculate averages for week %d", weekNumber))
334
+				_, err := wiki.EditWikiPageSection(title, section.index, changedWikiText,
335
+					fmt.Sprintf("Calculate averages for week %d", weekNumber))
337 336
 				err = nil
338 337
 				if err != nil {
339 338
 					return err