Neil-YL commited on
Commit
d52da78
·
verified ·
1 Parent(s): 3429479

Update maintenance_flow.py

Browse files
Files changed (1) hide show
  1. maintenance_flow.py +3 -4
maintenance_flow.py CHANGED
@@ -41,14 +41,13 @@ def request_wells_maintenance(maintenance_type):
41
  return "Maintenance flow timed out with no user interaction. " \
42
  "The requested maintenance was not carried out."
43
 
44
- set_maintenance_status(maintenance_type,0)
45
 
46
  if maintenance_type == "wellplate_maintenance":
47
- generate_empty_well()
48
- print("[Debug]well status updated")
49
  msg_out = f"Updating wells status on DB by {user_input.name}"
50
  logger.info(msg_out)
51
 
52
  insert_maintenance_log(maintenance_type, user_input.name)
53
-
 
54
  return msg_out
 
41
  return "Maintenance flow timed out with no user interaction. " \
42
  "The requested maintenance was not carried out."
43
 
 
44
 
45
  if maintenance_type == "wellplate_maintenance":
46
+ generate_empty_well()
 
47
  msg_out = f"Updating wells status on DB by {user_input.name}"
48
  logger.info(msg_out)
49
 
50
  insert_maintenance_log(maintenance_type, user_input.name)
51
+ set_maintenance_status(maintenance_type,0)
52
+
53
  return msg_out