Skip to content

Commit 0517d17

Browse files
committed
contributor percentage cleanup + fixes
Signed-off-by: TechnikTil <techniktil@tilnotdrip.org>
1 parent 2500eb6 commit 0517d17

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

src/funkin/macros/GitContributorMacro.hx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,23 +56,12 @@ class GitContributorMacro
5656
denominator++;
5757
}
5858

59-
var info:String = '';
60-
61-
for (username in amountPerUser.keys())
59+
for (i => username in usernames)
6260
{
63-
var percentage:Float = (amountPerUser.get(username) ?? 0) / denominator;
61+
var percentage:Float = (numerators[i] ?? 0) / denominator;
6462
percentages.set(username, percentage);
65-
66-
if (info.length > 0)
67-
info += '\n';
68-
69-
info += '${username}: ${Math.round(percentage * 100)}%';
7063
}
7164

72-
#if debug
73-
Context.info(info, Context.currentPos());
74-
#end
75-
7665
return macro $v{percentages};
7766
}
7867

0 commit comments

Comments
 (0)