diff --git a/.gitignore b/.gitignore index b77bbfe..1a8dc5b 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ vt_py.egg-info /.idea .vscode/ + +.DS_Store diff --git a/examples/upload_files.py b/examples/upload_files.py index f253b83..4764b27 100644 --- a/examples/upload_files.py +++ b/examples/upload_files.py @@ -56,6 +56,7 @@ async def process_analysis_results(apikey, analysis, file_path): async with vt.Client(apikey) as client: completed_analysis = await client.wait_for_analysis_completion(analysis) print(f'{file_path}: {completed_analysis.stats}') + print(f'analysis id: {completed_analysis.id}') async def main(): diff --git a/vt/client.py b/vt/client.py index 3dd6f3d..3442721 100644 --- a/vt/client.py +++ b/vt/client.py @@ -758,4 +758,4 @@ async def _wait_for_analysis_completion(self, analysis): return analysis async def wait_for_analysis_completion(self, analysis): - return self._wait_for_analysis_completion(analysis) + return await self._wait_for_analysis_completion(analysis)