Skip to content

Commit

Permalink
Fixing dangling databases (codestyle) πŸ§–πŸ½β€β™‚οΈ
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibyx committed Mar 24, 2024
1 parent d00de73 commit 4881a2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions apps/core/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ def prepare(self):
cursor.execute(f"CREATE DATABASE {self._database_name} OWNER {self._database_name};")
connection.commit()

self._task.additional_information['database'] = {
'name': self._database_name
}
self._task.additional_information["database"] = {"name": self._database_name}

# Recover database
command = [settings.PSQL_PATH, self._database_name]
Expand Down
2 changes: 1 addition & 1 deletion apps/core/models/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def execute_tasks(sender, instance: Evaluation, created: bool, **kwargs):
executor=Task.Executor.EVALUATION,
image=row["Link"],
)
task.additional_information['evaluation'] = row
task.additional_information["evaluation"] = row
instance.tasks.add(task)
jobs.append(
Queue.prepare_data(
Expand Down

0 comments on commit 4881a2f

Please sign in to comment.