Fix typos
This commit is contained in:
@@ -59,7 +59,7 @@ func (m *Model) GetStats(c context.Context) (Stats, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// returns the player's UUID if error is nil
|
// returns the player's UUID if error is nil
|
||||||
// err = NoSuchEntity if the sessionsCode is incorrect
|
// err = NoSuchEntity if the sessionCode is incorrect
|
||||||
func (m *Model) RegisterPlayer(playerName string, sessionCode string, c context.Context) (*ent.Player, error) {
|
func (m *Model) RegisterPlayer(playerName string, sessionCode string, c context.Context) (*ent.Player, error) {
|
||||||
tx, err := m.c.BeginTx(c, &sql.TxOptions{
|
tx, err := m.c.BeginTx(c, &sql.TxOptions{
|
||||||
Isolation: sql.LevelRepeatableRead,
|
Isolation: sql.LevelRepeatableRead,
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
<meta charset='utf-8'>
|
<meta charset='utf-8'>
|
||||||
<title>Tinyquiz</title>
|
<title>Tinyquiz</title>
|
||||||
<link rel="stylesheet" href="/static/style.css">
|
<link rel="stylesheet" href="/static/style.css">
|
||||||
{{ block "aditional-css" . }}{{ end }}
|
{{ block "additional-css" . }}{{ end }}
|
||||||
<script src="/static/script.js" defer type="text/javascript"></script>
|
<script src="/static/script.js" defer type="text/javascript"></script>
|
||||||
{{ block "aditional-js" . }}{{ end }}
|
{{ block "additional-js" . }}{{ end }}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{{- template "base" . -}}
|
{{- template "base" . -}}
|
||||||
|
|
||||||
{{- define "aditional-css" -}}
|
{{- define "additional-css" -}}
|
||||||
<link rel="stylesheet" href="/static/game.css">
|
<link rel="stylesheet" href="/static/game.css">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{- define "aditional-js" -}}
|
{{- define "additional-js" -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{- define "header" }}
|
{{- define "header" }}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{{- template "base" . -}}
|
{{- template "base" . -}}
|
||||||
|
|
||||||
{{- define "aditional-css" -}}
|
{{- define "additional-css" -}}
|
||||||
<link rel="stylesheet" href="/static/home.css">
|
<link rel="stylesheet" href="/static/home.css">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{- define "aditional-js" -}}
|
{{- define "additional-js" -}}
|
||||||
<script src="/static/home.js"></script>
|
<script src="/static/home.js"></script>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user