Procházet zdrojové kódy

信心指数改用float

visuddhinanda před 3 roky
rodič
revize
256d91486f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/Console/Commands/UpgradeCompound.php

+ 1 - 1
app/Console/Commands/UpgradeCompound.php

@@ -136,7 +136,7 @@ class UpgradeCompound extends Command
 				}
 				if(isset($part['grammar'])) $new->parent = $part['grammar'];
 				if(isset($part['parent'])) $new->parent = $part['parent'];
-				$new->confidence = (int)(50*$part['confidence']);
+				$new->confidence = 50*$part['confidence'];
 				$new->note = $part['confidence'];
 				$new->language = 'cm';
 				$new->creator_id = 1;