Various changes
This commit is contained in:
parent
a42591c701
commit
c388059f68
19 changed files with 1373 additions and 87 deletions
|
|
@ -66,8 +66,11 @@ pub async fn get_features(state: Arc<AppState>) -> Json<FeaturesResponse> {
|
|||
for feature_group in FEATURE_GROUPS {
|
||||
if feature_group.name == group_name {
|
||||
for feature_config in feature_group.features {
|
||||
if let Some(feat_idx) =
|
||||
state.data.feature_names.iter().position(|feat_name| feat_name == feature_config.name)
|
||||
if let Some(feat_idx) = state
|
||||
.data
|
||||
.feature_names
|
||||
.iter()
|
||||
.position(|feat_name| feat_name == feature_config.name)
|
||||
{
|
||||
let stats = &state.data.feature_stats[feat_idx];
|
||||
features.push(FeatureInfo::Numeric {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue