[P0] weekly review: корректный dry-run вывод
This commit is contained in:
1 parent
386c5f136a
commit
2246cc16de
1 file changed
+5
-1
@@ -51,7 +51,11 @@ def main():
|
|||||||
lines.append(" – %s: %s (ошибок %s)" % (t[0], t[1], t[2]))
|
lines.append(" – %s: %s (ошибок %s)" % (t[0], t[1], t[2]))
|
||||||
if eval_summary:
|
if eval_summary:
|
||||||
lines.append("• Eval: " + eval_summary)
|
lines.append("• Eval: " + eval_summary)
|
||||||
print("sent" if send("\n".join(lines), dry) else "failed")
|
r = send("\n".join(lines), dry)
|
||||||
|
if dry:
|
||||||
|
print("dry-run")
|
||||||
|
else:
|
||||||
|
print("sent" if r else "failed")
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user