removed more strings
This commit is contained in:
@@ -3113,7 +3113,7 @@ func GetRaces(c *gin.Context) {
|
|||||||
|
|
||||||
// GetCharacterClasses gibt verfügbare Klassen zurück
|
// GetCharacterClasses gibt verfügbare Klassen zurück
|
||||||
func GetCharacterClasses(c *gin.Context) {
|
func GetCharacterClasses(c *gin.Context) {
|
||||||
// Get game system from query parameter, default to "midgard"
|
// Get game system from query parameter, default to GameSystemId: 1
|
||||||
gameSystem := c.DefaultQuery("game_system", "midgard")
|
gameSystem := c.DefaultQuery("game_system", "midgard")
|
||||||
|
|
||||||
// Load character classes from database
|
// Load character classes from database
|
||||||
@@ -3154,7 +3154,7 @@ func SearchBeliefs(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get game system from query parameter, default to "midgard"
|
// Get game system from query parameter, default to GameSystemId: 1
|
||||||
gameSystem := c.DefaultQuery("game_system", "midgard")
|
gameSystem := c.DefaultQuery("game_system", "midgard")
|
||||||
|
|
||||||
// Load beliefs from database
|
// Load beliefs from database
|
||||||
|
|||||||
@@ -1139,7 +1139,7 @@ func TestSearchBeliefs(t *testing.T) {
|
|||||||
// Ensure game system rows exist (use INSERT OR IGNORE to avoid unique constraint errors)
|
// Ensure game system rows exist (use INSERT OR IGNORE to avoid unique constraint errors)
|
||||||
database.DB.Exec("INSERT OR IGNORE INTO game_systems(code,name,description,is_active,created_at,modified_at) VALUES (?,?,?,?,strftime('%s','now'),strftime('%s','now'))", "M5", "M5", "", true)
|
database.DB.Exec("INSERT OR IGNORE INTO game_systems(code,name,description,is_active,created_at,modified_at) VALUES (?,?,?,?,strftime('%s','now'),strftime('%s','now'))", "M5", "M5", "", true)
|
||||||
|
|
||||||
// Create some test believes for midgard
|
// Create some test believes for GameSystemId: 1
|
||||||
b1 := &models.Believe{GameSystemId: 1, Name: "TestFaithOne", SourceID: 1}
|
b1 := &models.Believe{GameSystemId: 1, Name: "TestFaithOne", SourceID: 1}
|
||||||
b2 := &models.Believe{GameSystemId: 1, Name: "OtherFaith", SourceID: 1}
|
b2 := &models.Believe{GameSystemId: 1, Name: "OtherFaith", SourceID: 1}
|
||||||
err = b1.Create()
|
err = b1.Create()
|
||||||
|
|||||||
Reference in New Issue
Block a user