Skip to content
This repository has been archived by the owner on Oct 14, 2019. It is now read-only.

Commit

Permalink
fixed a typo with firm.ceo
Browse files Browse the repository at this point in the history
  • Loading branch information
thecsw committed May 18, 2019
1 parent 0e6b411 commit 10af507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/payroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def main():

# 100% of remaining paid to associates (21% of total payroll)
trader_total = remaining_amount
tradernbr = firm.size - firm.execs - firm.assocs - firm.ceo - firm.cfo - firm.coo
tradernbr = firm.size - firm.execs - firm.assocs - 1 - firm.cfo - firm.coo
trader_amount = int(trader_total / max(tradernbr, 1))

logging.info(" -- firm '%s': paying out %s each to %s trader(s), %s each to %s associate(s), %s each to %s executive(s), and %s each to %s board member(s)",\
Expand Down Expand Up @@ -111,4 +111,4 @@ def main():
time.sleep(10 * 60)

if __name__ == "__main__":
main()
main()

0 comments on commit 10af507

Please sign in to comment.