Overhaul of a lot of things.

This commit is contained in:
calcu1on
2025-08-31 21:26:31 -04:00
parent 63a7ab4286
commit 7c70bc0de7
149 changed files with 6025 additions and 41504 deletions

View File

@@ -159,8 +159,6 @@ class FightTrainingController extends ControllerBase {
$extracted_values = $this->extractValuesFromFields($id, $this->fields, $prefix);
/* return $extracted_values; */
return $this->normalizeData($extracted_values);
}
@@ -188,7 +186,6 @@ class FightTrainingController extends ControllerBase {
private function normalizeData(array $data): array {
// @todo - this creates an issue where duration of fight is the largest number which isnt really correct
// and smaller duration would be better
//
$min = min(array_values($data));
$max = max(array_values($data));
$normalized = [];

View File

@@ -185,10 +185,6 @@ class FighterImporter {
}
}
public function quickTest($str) {
return "hello$str";
}
/**
* Extract fighters from an html string.
*/
@@ -241,8 +237,6 @@ class FighterImporter {
$this->fighters[$this->weightClass][$name_no_spaces]['profile'] = $fighter_data['profile'];
}
// here you are dan, set the profile url of the fighter, then use that in parsing later on
if (!empty($fighter_data['images']) && count($fighter_data['images']) == 2) {
$this->fighters[$this->weightClass][$name_no_spaces]['image'] = $fighter_data['images'][0];
}