diff options
Diffstat (limited to 'backend/handlers')
| -rw-r--r-- | backend/handlers/home.go | 1 | ||||
| -rw-r--r-- | backend/handlers/record.go | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/backend/handlers/home.go b/backend/handlers/home.go index fd7c6c0..19eef93 100644 --- a/backend/handlers/home.go +++ b/backend/handlers/home.go | |||
| @@ -270,7 +270,6 @@ func RankingsSteam(c *gin.Context) { | |||
| 270 | func SearchWithQuery(c *gin.Context) { | 270 | func SearchWithQuery(c *gin.Context) { |
| 271 | query := c.Query("q") | 271 | query := c.Query("q") |
| 272 | query = strings.ToLower(query) | 272 | query = strings.ToLower(query) |
| 273 | log.Println(query) | ||
| 274 | var response SearchResponse | 273 | var response SearchResponse |
| 275 | // Cache all maps for faster response | 274 | // Cache all maps for faster response |
| 276 | var maps = []MapShortWithGame{ | 275 | var maps = []MapShortWithGame{ |
diff --git a/backend/handlers/record.go b/backend/handlers/record.go index 25d0509..9b8e207 100644 --- a/backend/handlers/record.go +++ b/backend/handlers/record.go | |||
| @@ -376,10 +376,6 @@ func DownloadDemoWithID(c *gin.Context) { | |||
| 376 | c.JSON(http.StatusOK, models.ErrorResponse(err.Error())) | 376 | c.JSON(http.StatusOK, models.ErrorResponse(err.Error())) |
| 377 | return | 377 | return |
| 378 | } | 378 | } |
| 379 | log.Printf("found %d files", len(fileList.Files)) | ||
| 380 | for _, f := range fileList.Files { | ||
| 381 | log.Printf("%+v", f) | ||
| 382 | } | ||
| 383 | if len(fileList.Files) == 0 { | 379 | if len(fileList.Files) == 0 { |
| 384 | c.JSON(http.StatusOK, models.ErrorResponse("Demo not found.")) | 380 | c.JSON(http.StatusOK, models.ErrorResponse("Demo not found.")) |
| 385 | return | 381 | return |