diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-19 21:42:17 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-19 21:42:17 +0300 |
| commit | b95795d8c74f04945227524b8336ff91277d753a (patch) | |
| tree | 3005fa2198ca3e28e904eb1b99e93ba0d0fb5555 /backend/handlers | |
| parent | backend: actually fix download demo (diff) | |
| download | lphub-b95795d8c74f04945227524b8336ff91277d753a.tar.gz lphub-b95795d8c74f04945227524b8336ff91277d753a.tar.bz2 lphub-b95795d8c74f04945227524b8336ff91277d753a.zip | |
backend: actually fix download demo
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 |