about summary refs log tree commit diff
path: root/src/http.go
diff options
context:
space:
mode:
authorhanemile <mail@emile.space>2020-07-19 16:51:20 +0200
committerhanemile <mail@emile.space>2020-07-19 16:51:20 +0200
commit6cf9eb0de1f6a4bee6655ada346f96d4ae5c21af (patch)
tree22cd361727f2d14f5fc4ac4925397947ccb77af3 /src/http.go
parentba9b3dfae3166406fa759b1c52909c12b47d09fc (diff)
removed merge conflicts
Diffstat (limited to 'src/http.go')
-rw-r--r--src/http.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/http.go b/src/http.go
index ec01825..823a969 100644
--- a/src/http.go
+++ b/src/http.go
@@ -19,10 +19,7 @@ func initHTTPServer() {
 	r := mux.NewRouter()
 	r.HandleFunc("/", indexHandler).Methods("GET")
 	r.HandleFunc("/upcoming", upcomingHandler).Methods("GET")
-<<<<<<< HEAD
 	r.HandleFunc("/past", pastHandler).Methods("GET")
-=======
->>>>>>> refs/remotes/origin/master
 	r.HandleFunc("/propose", proposeHandler).Methods("GET")
 	r.HandleFunc("/talk/{uuid}", talkHandler).Methods("GET")
 
@@ -63,42 +60,32 @@ func indexHandler(w http.ResponseWriter, r *http.Request) {
 		logrus.Warn(err)
 		return
 	}
-<<<<<<< HEAD
 	// fetch the last three talks
 	lastThreeTalks, err := db.PastTalksLimited(pgdb)
 	if err != nil {
 		logrus.Warn(err)
 		return
 	}
-=======
->>>>>>> refs/remotes/origin/master
 
 	upcomingCount, err := db.CountUpcomingTalks(pgdb)
 	if err != nil {
 		logrus.Warn(err)
 		return
 	}
-<<<<<<< HEAD
 	pastCount, err := db.CountPastTalks(pgdb)
 	if err != nil {
 		logrus.Warn(err)
 		return
 	}
-=======
->>>>>>> refs/remotes/origin/master
 
 	content := map[string]interface{}{
 		"upcomingTalks": firstThreeTalks,
 		"upcomingCount": upcomingCount,
-<<<<<<< HEAD
 
 		"pastTalks": lastThreeTalks,
 		"pastCount": pastCount,
 
 		"All": false,
-=======
-		"All":           false,
->>>>>>> refs/remotes/origin/master
 	}
 
 	// define a template
@@ -121,11 +108,7 @@ func upcomingHandler(w http.ResponseWriter, r *http.Request) {
 	defer db.Disconnect(pgdb)
 
 	// fetch the next talks
-<<<<<<< HEAD
 	upcomingTalks, err := db.UpcomingTalks(pgdb)
-=======
-	firstThreeTalks, err := db.UpcomingTalks(pgdb)
->>>>>>> refs/remotes/origin/master
 	if err != nil {
 		logrus.Warn(err)
 		return
@@ -138,11 +121,7 @@ func upcomingHandler(w http.ResponseWriter, r *http.Request) {
 	}
 
 	content := map[string]interface{}{
-<<<<<<< HEAD
 		"upcomingTalks": upcomingTalks,
-=======
-		"upcomingTalks": firstThreeTalks,
->>>>>>> refs/remotes/origin/master
 		"upcomingCount": upcomingCount,
 		"All":           true,
 	}
@@ -162,7 +141,6 @@ func upcomingHandler(w http.ResponseWriter, r *http.Request) {
 	}
 }
 
-<<<<<<< HEAD
 func pastHandler(w http.ResponseWriter, r *http.Request) {
 	pgdb := db.Connect()
 	defer db.Disconnect(pgdb)
@@ -201,8 +179,6 @@ func pastHandler(w http.ResponseWriter, r *http.Request) {
 	}
 }
 
-=======
->>>>>>> refs/remotes/origin/master
 func proposeHandler(w http.ResponseWriter, r *http.Request) {
 
 	// find the date of the next friday