Run python black

This commit is contained in:
Brandon Rising
2023-08-16 15:44:52 -04:00
parent 796ee1246b
commit f7277a8b21
3 changed files with 8 additions and 4 deletions

View File

@ -363,7 +363,10 @@ class SqliteBatchProcessStorage(BatchProcessStorageBase):
graph_raw = session_dict.get("graph", "unknown")
canceled = session_dict.get("canceled", 0)
return BatchProcess(
batch_id=batch_id, batch=parse_raw_as(Batch, batch_raw), graph=parse_raw_as(Graph, graph_raw), canceled=canceled == 1
batch_id=batch_id,
batch=parse_raw_as(Batch, batch_raw),
graph=parse_raw_as(Graph, graph_raw),
canceled=canceled == 1,
)
def get(