fix: align inspection report template

This commit is contained in:
nyan404 committed 2026-08-16 15:26:35 +03:00
1 parent c6f742f15b
commit 0cb5889ce2
4 files changed
+12 -11

No files matched your search

+3 -3
View File
@@ -56,15 +56,15 @@ def render_inspection(report: InspectionReport) -> str:
word = "раз"
lines = [
"#осмотр",
f"{report.character_name} [{report.character_id}] осмотрел(а) {report.place} {report.inspections} {word}."
f"{report.character_name} [{report.character_id}] осмотрел(-а) {report.place} {report.inspections} {word}."
]
if report.resources:
lines.extend(
f"{('+' + str(abs(amount))) if amount > 0 else ('- ' + str(abs(amount)))} {name}"
f"{('+' if amount > 0 else '-')}{abs(amount)} {name}."
for name, amount in report.resources
if amount
)
else:
lines.append("0")
lines.append("Не забудьте приложить скриншот истории и рта.")
lines.append("Скриншот истории и рта.")
return "\n".join(lines)