Skip to content

Commit

Permalink
Rename done -> complete
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Nov 11, 2024
1 parent 5386331 commit aad2f30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/lvmcryo/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ async def ln2(
LOCKFILE.unlink()

db_handler = DBHandler(action, handler, config, json_handler=json_handler)
record_pk = await db_handler.write(done=False)
record_pk = await db_handler.write(complete=False)
if record_pk:
log.debug(f"Record {record_pk} created in the database.")

Expand Down Expand Up @@ -641,7 +641,7 @@ async def ln2(
error = validate_error

log.info("Writing fill metadata to database.")
await db_handler.write(done=True, plot_paths=plot_paths, error=error)
await db_handler.write(complete=True, plot_paths=plot_paths, error=error)

if config.notify:
images = {
Expand Down
6 changes: 3 additions & 3 deletions src/lvmcryo/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def get_log_data(self):

async def write(
self,
done: bool = False,
complete: bool = False,
plot_paths: dict[str, pathlib.Path] = {},
error: Exception | str | None = None,
raise_on_error: bool = False,
Expand All @@ -336,7 +336,7 @@ async def write(
Parameters
----------
done
complete
Whether the action is complete.
plot_paths
A dictionary with the paths to the plots.
Expand Down Expand Up @@ -368,7 +368,7 @@ async def write(
self.api_route,
json={
"action": self.action,
"done": done,
"complete": complete,
"pk": self.pk,
"start_time": date_json(event_times.start_time),
"end_time": date_json(event_times.end_time),
Expand Down

0 comments on commit aad2f30

Please sign in to comment.