....
This commit is contained in:
@@ -71,10 +71,11 @@ object ConfigTable : Table("app_config") {
|
||||
val loss_max_money = double("loss_max_money").default(10000.0)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
val max_count = integer("max_count").default(20)
|
||||
|
||||
val max_holding_count = double("max_holding_count").default(100.0)
|
||||
|
||||
|
||||
override val primaryKey = PrimaryKey(id)
|
||||
}
|
||||
|
||||
@@ -289,6 +290,7 @@ object DatabaseFactory {
|
||||
loss_max = it[ConfigTable.loss_maxrate],
|
||||
loss_money = it[ConfigTable.loss_max_money],
|
||||
MAX_COUNT = it[ConfigTable.max_count],
|
||||
max_holding_count = it[ConfigTable.max_holding_count],
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -339,6 +341,7 @@ object DatabaseFactory {
|
||||
it[loss_minrate] = config.loss_min
|
||||
it[loss_max_money] = config.loss_money
|
||||
it[max_count] = config.MAX_COUNT
|
||||
it[max_holding_count] = config.max_holding_count
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user