From 03f617490f6408afddb5572b02b893ccc89f5845 Mon Sep 17 00:00:00 2001 From: "shine.wong" <40054991+wjashan@users.noreply.github.com> Date: Tue, 23 Oct 2018 12:08:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AC=E5=8F=8920=E5=AE=A1=E6=9F=A5=E6=83=A9?= =?UTF-8?q?=E7=BD=9A=E6=97=B6=E9=97=B4=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit curation_reward_pct()从原来的30分钟改为15分钟 --- steem/post.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/steem/post.py b/steem/post.py index f85d534..0925968 100644 --- a/steem/post.py +++ b/steem/post.py @@ -195,9 +195,9 @@ def is_comment(self): return self['depth'] > 0 def curation_reward_pct(self): - """ If post is less than 30 minutes old, it will incur a curation + """ If post is less than 15 minutes old, it will incur a curation reward penalty. """ - reward = (self.time_elapsed().seconds / 1800) * 100 + reward = (self.time_elapsed().seconds / 900) * 100 if reward > 100: reward = 100 return reward