Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #70 from austin-taylor/patch-1
Browse files Browse the repository at this point in the history
Fix to job_output bug
  • Loading branch information
Roach committed Feb 5, 2018
2 parents 6f58b55 + 1640620 commit 6a13371
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rtmbot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ def do(self, function_name, data):
)

def do_jobs(self):
job_output = []
for job in self.jobs:
if job.check():
# interval is up, so run the job
Expand All @@ -239,8 +240,9 @@ def do_jobs(self):

# job attempted execution so reset the timer and log output
job.lastrun = time.time()
for out in job_output:
self.outputs.append(out)
if job_output:
for out in job_output:
self.outputs.append(out)

def do_output(self):
output = []
Expand Down

0 comments on commit 6a13371

Please sign in to comment.