remove firm that denied request from candidate list

This commit is contained in:
2023-05-15 13:37:05 +08:00
parent aac2607284
commit 7e8980d0c6
15 changed files with 82 additions and 53 deletions

View File

@@ -6,7 +6,7 @@ from model import Model
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from controller_db import ControllerDB
class Computation:
@@ -21,7 +21,8 @@ class Computation:
# lock this row by update is_done_flag to 0
self.c_db.lock_the_sample(sample_random)
print(f"Pid {self.pid} ({str_code}) is running sample {sample_random.id} at {datetime.datetime.now()}")
print(
f"Pid {self.pid} ({str_code}) is running sample {sample_random.id} at {datetime.datetime.now()}")
dct_exp = {column: getattr(sample_random.experiment, column)
for column in sample_random.experiment.__table__.c.keys()}