Skip to content

Commit 78a08fc

Browse files
committed
Update tools to include tables
1 parent 98f164c commit 78a08fc

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

tools/ColourCodes.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const FORMATTING_CODES = {
2424
["§r"]: "reset",
2525
}
2626

27-
class ColourCodes {
27+
export default class ColourCodes {
2828
constructor(){
2929
this.scores = { entries: [], scores: {} }
3030

@@ -60,4 +60,8 @@ class ColourCodes {
6060
}
6161
return online
6262
}
63+
getTables = async () => [{
64+
sortColumn: "Player",
65+
sortDirection: "ascending",
66+
}]
6367
}

tools/RandomStats.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class RandomStats {
1+
export default class RandomStats {
22
static N_ENTRIES = 10
33
static N_STATS = 5
44

@@ -41,4 +41,8 @@ class RandomStats {
4141
}
4242
return online
4343
}
44-
}
44+
getTables = async () => [{
45+
sortColumn: "Player",
46+
sortDirection: "ascending",
47+
}]
48+
}

0 commit comments

Comments
 (0)