Skip to content

Commit

Permalink
0.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
shenjackyuanjie committed Sep 24, 2024
1 parent 16e0663 commit f5d3c4a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 173 deletions.
9 changes: 4 additions & 5 deletions branch/latest/md5-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ async function wrap_any(names: string, round: number): Promise<string> {
if (round > out_limit) {
// 把所有要找的数据拿出来
const output_datas: WinRate[] = [];
result.raw_data.forEach((data, index) => {
result.raw_data.forEach((data) => {
if (data.round % out_limit === 0) {
output_datas.push(data);
}
});
output_datas.forEach((data, index) => {
output_datas.forEach((data) => {
const win_rate = (data.win_count * 100) / data.round;
output_str += `\n${win_rate.toFixed(2)}%(${data.round})`;
});
Expand All @@ -163,12 +163,12 @@ async function wrap_any(names: string, round: number): Promise<string> {
if (round > out_limit) {
// 把所有要找的数据拿出来
const output_datas: Score[] = [];
result.raw_data.forEach((data, index) => {
result.raw_data.forEach((data) => {
if (data.round % out_limit === 0) {
output_datas.push(data);
}
});
output_datas.forEach((data, index) => {
output_datas.forEach((data) => {
const win_rate = ((data.score / data.round) * 10000).toFixed(2);
output_str += `\n${win_rate}(${data.round})`;
});
Expand All @@ -178,7 +178,6 @@ async function wrap_any(names: string, round: number): Promise<string> {

import * as process from "process";
import * as fs from "fs";
import * as path from "path";
async function cli() {
// 直接跑他
// 先获取命令行输入
Expand Down
Loading

0 comments on commit f5d3c4a

Please sign in to comment.