File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -32,26 +32,26 @@ def main(args):
3232 close_date = Project (lims = lims , id = project_id ).close_date
3333 except HTTPError as e :
3434 if "404: Project not found" in str (e ):
35- log .error ("Project " + project_id + " not found in LIMS" )
35+ log .error (f "Project { project_id } not found in LIMS" )
3636 continue
3737 if close_date is not None :
3838 try :
3939 doc = couch .get_document (
4040 db = "bioinfo_analysis" ,
41- document_id = row ["id" ],
41+ doc_id = row ["id" ],
4242 ).get_result ()
4343 except Exception as e :
44- log .error (e + " in Project " + project_id + " Sample " + sample_id + " while accessing doc from statusdb" )
44+ log .error (f" { e } in Project { project_id } Sample { sample_id } while accessing doc from statusdb" )
4545 doc ["project_closed" ] = True
4646 try :
4747 couch .put_document (
4848 db = "bioinfo_analysis" ,
4949 document = doc ,
50- document_id = row ["id" ],
50+ doc_id = row ["id" ],
5151 ).get_result ()
52- log .info ("Updated Project " + project_id + " Sample " + sample_id )
52+ log .info (f "Updated Project { project_id } Sample { sample_id } " )
5353 except Exception as e :
54- log .error (e + " in Project " + project_id + " Sample " + sample_id + " while saving to statusdb" )
54+ log .error (f" { e } in Project { project_id } Sample { sample_id } while saving to statusdb" )
5555
5656
5757if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments