Skip to content

Commit

Permalink
messing around with vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
walkingeyerobot committed Jun 15, 2020
1 parent 33ce0f7 commit 42a58c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ node_modules/
/client_toolchain/stats.json
/client_toolchain/dev_server/dist
static/dist
settings.json
launch.json
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

type Draft struct {
Name string
Id int64
ID int64
Seats int64
Joined bool
Joinable bool
Expand Down Expand Up @@ -922,13 +922,13 @@ func ServeIndex(w http.ResponseWriter, r *http.Request, userId int64) {
var Drafts []Draft
for rows.Next() {
var d Draft
err = rows.Scan(&d.Id, &d.Name, &d.Seats, &d.Joined)
err = rows.Scan(&d.ID, &d.Name, &d.Seats, &d.Joined)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
d.Joinable = d.Seats > 0 && !d.Joined
d.Replayable, err = CanViewReplay(d.Id, userId)
d.Replayable, err = CanViewReplay(d.ID, userId)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
Expand Down

0 comments on commit 42a58c2

Please sign in to comment.