Skip to content

Commit e753376

Browse files
author
Kile
committed
🐛 Another bugfix
1 parent 729383f commit e753376

File tree

5 files changed

+32
-18
lines changed

5 files changed

+32
-18
lines changed

grafana/dashboards/main.json

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@
10581058
"size": {
10591059
"field": "Value (lastNotNull)",
10601060
"fixed": 5,
1061-
"max": 15,
1061+
"max": 30,
10621062
"min": 2
10631063
},
10641064
"symbol": {
@@ -1464,7 +1464,7 @@
14641464
"fieldConfig": {
14651465
"defaults": {
14661466
"color": {
1467-
"mode": "palette-classic"
1467+
"mode": "continuous-purples"
14681468
},
14691469
"custom": {
14701470
"axisBorderShow": false,
@@ -1474,7 +1474,7 @@
14741474
"axisPlacement": "auto",
14751475
"barAlignment": 0,
14761476
"drawStyle": "line",
1477-
"fillOpacity": 0,
1477+
"fillOpacity": 10,
14781478
"gradientMode": "none",
14791479
"hideFrom": {
14801480
"legend": false,
@@ -1489,7 +1489,7 @@
14891489
"type": "linear"
14901490
},
14911491
"showPoints": "auto",
1492-
"spanNulls": false,
1492+
"spanNulls": true,
14931493
"stacking": {
14941494
"group": "A",
14951495
"mode": "none"
@@ -1505,10 +1505,6 @@
15051505
{
15061506
"color": "green",
15071507
"value": null
1508-
},
1509-
{
1510-
"color": "red",
1511-
"value": 80
15121508
}
15131509
]
15141510
}
@@ -1540,8 +1536,8 @@
15401536
"type": "prometheus",
15411537
"uid": "prometheusdatasource"
15421538
},
1543-
"editorMode": "builder",
1544-
"expr": "discord_event_on_interaction_total{job=\"$job\"}",
1539+
"editorMode": "code",
1540+
"expr": "round(delta(discord_event_on_interaction_total{job=\"$job\"}[1h]))",
15451541
"instant": false,
15461542
"legendFormat": "__auto",
15471543
"range": true,
@@ -1553,7 +1549,7 @@
15531549
"uid": "prometheusdatasource"
15541550
},
15551551
"editorMode": "code",
1556-
"expr": "discord_event_on_command_total{job=\"$job\"}",
1552+
"expr": "round(delta(discord_event_on_command_total{job=\"$job\"}[1h]))",
15571553
"hide": false,
15581554
"instant": false,
15591555
"legendFormat": "__auto",
@@ -1574,6 +1570,24 @@
15741570
},
15751571
"replaceFields": true
15761572
}
1573+
},
1574+
{
1575+
"id": "filterByValue",
1576+
"options": {
1577+
"filters": [
1578+
{
1579+
"config": {
1580+
"id": "lower",
1581+
"options": {
1582+
"value": 0
1583+
}
1584+
},
1585+
"fieldName": "Command usage"
1586+
}
1587+
],
1588+
"match": "any",
1589+
"type": "exclude"
1590+
}
15771591
}
15781592
],
15791593
"type": "timeseries"
@@ -2676,6 +2690,6 @@
26762690
"timezone": "",
26772691
"title": "Killua statistics",
26782692
"uid": "TGkTuzD4zA",
2679-
"version": 1,
2693+
"version": 2,
26802694
"weekStart": ""
26812695
}

killua/cogs/cards.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ async def discard(self, ctx: commands.Context, card: str):
694694
async def cardinfo(self, ctx: commands.Context, card: str):
695695
"""Check card info out about any card you own"""
696696
try:
697-
c = await Card.new(card)
697+
c: Card = await Card.new(card)
698698
except CardNotFound:
699699
return await ctx.send("Invalid card")
700700

killua/static/cards.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ async def _get_analysis_embed(
222222
]
223223
if card.type == "spell":
224224
fields.append(
225-
{"name": "Class", "value": ", ".join(card.cls), "inline": True}
225+
{"name": "Class", "value": ", ".join(card._cls), "inline": True}
226226
)
227227
fields.append({"name": "Range", "value": card.range, "inline": True})
228228

killua/utils/classes/card.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class PartialCard:
3636
available: bool
3737
type: str = "normal"
3838
range: str = None
39-
cls: List[str] = None
39+
_cls: List[str] = None
4040

4141
cache: ClassVar[Dict[int, PartialCard]] = {}
4242
cached_raw: ClassVar[List[Tuple[str, int]]] = []
@@ -84,7 +84,7 @@ async def new(cls, name_or_id: str) -> Type[PartialCard]:
8484
available=raw.get("available", True),
8585
type=raw.get("type", "normal"),
8686
range=raw.get("range", None),
87-
cls=raw.get("class", None),
87+
_cls=raw.get("class", None),
8888
)
8989

9090
cls.cache[cards_id] = card

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ blinker==1.8.2
1010
braceexpand==0.1.7
1111
bs4==0.0.2
1212
cachetools==5.3.3
13-
certifi==2024.6.2
13+
certifi==2024.7.4
1414
charset-normalizer==3.3.2
1515
click==8.1.7
1616
colorclass==2.2.2
@@ -80,7 +80,7 @@ toml==0.10.2
8080
tomli==2.0.1
8181
typed-ast==1.5.5
8282
typing_extensions==4.12.1
83-
urllib3==2.2.1
83+
urllib3==2.2.2
8484
uvicorn==0.30.1
8585
Werkzeug==3.0.3
8686
wsproto==1.2.0

0 commit comments

Comments
 (0)