mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 14:05:13 +00:00
dev mode returned local
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
// @title NBA_Go API
|
||||
// @version 1.0
|
||||
// @description Stats service, now with public access!
|
||||
// @schemes https
|
||||
// //@schemes https
|
||||
// @schemes http
|
||||
// @BasePath /
|
||||
//
|
||||
// @tag.name PlayerTotals
|
||||
@@ -45,7 +46,7 @@ import (
|
||||
func main() {
|
||||
// ——— One-off import-data mode ———
|
||||
if len(os.Args) > 1 && os.Args[1] == "import-data" {
|
||||
// Run all migrations + import steps exactly once
|
||||
// Run all DB migrations + import steps exactly once
|
||||
db := config.InitDB(true)
|
||||
|
||||
importPlayerAdvanced(db)
|
||||
|
||||
Reference in New Issue
Block a user