Code cleanup

This commit is contained in:
2022-01-22 17:13:38 +03:00
parent 401f9fb529
commit ff63d6dfaa
13 changed files with 232 additions and 138 deletions
+2 -2
View File
@@ -114,7 +114,7 @@ namespace West.TelegramBot.ChatManagement.Handler
}
receiverRepOption.SetValue(receiverRepCount);
Db.MarkAsModified(receiverRepOption);
Db.Update(receiverRepOption);
await Reply($"{From.ToHtml()}<code>({await GetUserReputation(From)}) " +
$"{action} репутацию </code>{receiver.ToHtml()}<code>({Math.Round(receiverRepCount, 2)})</code>");
@@ -138,7 +138,7 @@ namespace West.TelegramBot.ChatManagement.Handler
reputation = Math.Round(reputation, 2);
var opt = await GetReputationOption(RepliedUser);
opt.SetValue(reputation);
Db.MarkAsModified(opt);
Db.Update(opt);
await Reply(
new HtmlString()