This commit is contained in:
HaoYizhi 2023-05-15 13:45:07 +08:00
parent 745763ce2e
commit 5d42d74639
1 changed files with 2 additions and 1 deletions

View File

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