Skip to content

Commit

Permalink
paying out investors first (cause this increases sp for voting!)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Meyer committed Mar 9, 2018
1 parent 5ed7353 commit 88ef6b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions trufflepig/main.py
Expand Up @@ -122,6 +122,12 @@ def main():
posting_key=config.POSTING_KEY,
active_key=config.ACTIVE_KEY)

logger.info('Paying out investors')
account = config.ACCOUNT
tpde.pay_delegates(account=account,
steem_args=steem_kwargs,
current_datetime=current_datetime)

if not tpmo.model_exists(current_datetime, model_directoy):

post_frame = load_and_preprocess_2_frames(
Expand All @@ -148,7 +154,6 @@ def main():

tpmo.log_pipeline_info(pipeline=pipeline)

account = config.ACCOUNT
overview_permalink = tppw.return_overview_permalink_if_exists(account=account,
current_datetime=current_datetime,
steem_args=steem_kwargs)
Expand Down Expand Up @@ -211,11 +216,6 @@ def main():
tfut.clean_up_directory(data_directory, keep_last=25)
tfut.clean_up_directory(log_directory, keep_last=14)

logger.info('Paying out investors')
tpde.pay_delegates(account=account,
steem_args=steem_kwargs,
current_datetime=current_datetime)

logger.info('DONE at {}'.format(current_datetime))


Expand Down

0 comments on commit 88ef6b5

Please sign in to comment.