Skip to content

Commit

Permalink
Merge pull request #37 from AxFoundation/fix_syntax
Browse files Browse the repository at this point in the history
fix syntax errors
  • Loading branch information
darrylmasson committed Mar 29, 2021
2 parents c78190d + 9a50e5f commit d22e8ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dispatcher/MongoConnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def aggregate_status(self):
detector, not the logical detector, while status and run number
apply to both
"""
time_time = time.time()
now_time = time.time()
ret = None
aggstat = {
k:{ 'status': -1,
Expand Down Expand Up @@ -211,7 +211,7 @@ def aggregate_status(self):

try:
status = DAQ_STATUS(doc['status'])
if self.is_timeout(doc, now):
if self.is_timeout(doc, now_time):
self.status = DAQ_STATUS.TIMEOUT
except Exception as e:
self.log.debug(f'Ran into {type(e)}, daq is in timeout. {e}')
Expand All @@ -224,7 +224,7 @@ def aggregate_status(self):
try:
status = DAQ_STATUS(doc['status'])

if self.is_timeout(doc, now):
if self.is_timeout(doc, now_time):
status = DAQ_STATUS.TIMEOUT
except Exception as e:
self.log.debug(f'Setting status to unknown because of {type(e)}: {e}')
Expand Down

0 comments on commit d22e8ed

Please sign in to comment.