Release beta 1.1.0 scan and duplicate fixes
This commit is contained in:
@@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "jwebot-official-extensions"
|
||||
version = "1.0.5b1+1016"
|
||||
version = "1.1.0b1+1016"
|
||||
description = "Reviewed local command adapters and broker implementation for JWeBot"
|
||||
requires-python = ">=3.9"
|
||||
dependencies = [
|
||||
"jwebot-sdk==1.0.5b1+1016",
|
||||
"jwebot-sdk==1.1.0b1+1016",
|
||||
]
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
|
||||
@@ -90,4 +90,4 @@ __all__ = [
|
||||
"render_feature_list",
|
||||
]
|
||||
|
||||
__version__ = "1.0.5b1+1016"
|
||||
__version__ = "1.1.0b1+1016"
|
||||
|
||||
+12
-4
@@ -246,17 +246,25 @@ class LocalCommandEngine:
|
||||
|
||||
def scan_ranking(self, row: dict[str, Any]) -> str:
|
||||
local_date = datetime.now(BEIJING_TIMEZONE).date().isoformat()
|
||||
ranking = self.ledger.clock_scan_ranking(
|
||||
str(row["group_fingerprint"]),
|
||||
group = str(row["group_fingerprint"])
|
||||
ranking = self.ledger.clock_scan_ranking_all(
|
||||
group,
|
||||
local_date,
|
||||
)
|
||||
weights = self.ledger.next_clock_scan_weights(
|
||||
str(row["group_fingerprint"]),
|
||||
)
|
||||
if not ranking:
|
||||
return "北京时间今天还没有已确认送达的扫码记录"
|
||||
return "北京时间今天还没有可展示的扫码候选"
|
||||
listing = ";".join(
|
||||
f"{index}. {entry['display_name']} {entry['scan_count']} 次"
|
||||
for index, entry in enumerate(ranking, start=1)
|
||||
)
|
||||
return f"北京时间今日扫码排行:{listing}"
|
||||
weight_listing = ";".join(
|
||||
f"{entry['display_name']} {entry['weight']}"
|
||||
for entry in weights
|
||||
)
|
||||
return f"北京时间今日扫码排行:{listing}\n下一小时扫码权重:{weight_listing}"
|
||||
|
||||
def repeat_ranking(self, row: dict[str, Any]) -> str:
|
||||
self.ledger.bootstrap_repeat_history()
|
||||
|
||||
@@ -692,7 +692,9 @@ class PlayerGames:
|
||||
lines = [
|
||||
(
|
||||
f"{player_label}:{expired}当前摩拉 {account['balance']};"
|
||||
f"原石 {account['primogems']} 个;{loan_text}"
|
||||
f"原石 {account['primogems']} 个;"
|
||||
f"扫码概率券 {account['scan_boost_tickets']} 张;"
|
||||
f"{loan_text}"
|
||||
),
|
||||
(
|
||||
f"21点 {state};已结算胜 {account['wins']} / "
|
||||
|
||||
Reference in New Issue
Block a user