Browse Source

Enable average updates

Toni Fadjukoff 6 years ago
parent
commit
19cad836ee
1 changed files with 2 additions and 3 deletions
  1. 2 3
      bot.go

+ 2 - 3
bot.go View File

@@ -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