auto: black run

This commit is contained in:
2021-01-07 22:32:36 +03:00
parent af06978cc9
commit 885e17754b
9 changed files with 43 additions and 49 deletions

View File

@@ -40,7 +40,7 @@ class AnalyzeResponse:
self.improvement_absolute = 0
self.improvement_relative = 0
self.worker = ""
@classmethod
def from_data(cls, data):
res = cls()
@@ -82,13 +82,12 @@ def create_analyze_task(url: str, level: int, task_id: Optional[int] = None) ->
def create_analyze_response(
task: AnalyzeTask,
initial_size: int,
final_size: int,
duration: float,
worker: str = platform.node(),
clone_duration: float = 0,
task: AnalyzeTask,
initial_size: int,
final_size: int,
duration: float,
worker: str,
clone_duration: float = 0,
) -> AnalyzeResponse:
res = AnalyzeResponse()
res.created_at = task.created_at