Commit ca255ab7 authored by Mikhail Babynichev's avatar Mikhail Babynichev 😊
Browse files

fix bug

parent 548b15c4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
football_cms
stats.db
+9 −1
Original line number Diff line number Diff line
package handlers

func handler_add(ctx *macaron.Context) {
import (
	"gopkg.in/macaron.v1"

	"strings"
    dbstr "../structs"
)


func Handler_add(ctx *macaron.Context) {
	var match dbstr.Match
	db.First(&match, "Active = ?", 1)
	if match.Active != 0 {
+8 −1
Original line number Diff line number Diff line
package handlers

func handler_edit(ctx *macaron.Context) {
import (
	"gopkg.in/macaron.v1"

    dbstr "../structs"
)


func Handler_edit(ctx *macaron.Context) {
	var match dbstr.Match
	db.First(&match, "Active = ?", 1)
	if match.Active != 0 {
+8 −1
Original line number Diff line number Diff line
package handlers

func handler_edit_main(ctx *macaron.Context) {
import (
	"gopkg.in/macaron.v1"
	"strconv"
	"strings"
    dbstr "../structs"
)

func Handler_edit_main(ctx *macaron.Context) {
	var match dbstr.Match
	db.First(&match, "Active = ?", 1)
	if match.Active != 0 {
+7 −1
Original line number Diff line number Diff line
package handlers

func handler_end(ctx *macaron.Context) {
import (
	"gopkg.in/macaron.v1"

    dbstr "../structs"
)

func Handler_end(ctx *macaron.Context) {
	var match dbstr.Match
	db.First(&match, "Active = ?", 1)
	if match.Active != 0 {
Loading