Skip to content
Snippets Groups Projects

Fix output sizes

Merged Mattia Mancini requested to merge fix_output_sizes into main
3 files
+ 59
1
Compare changes
  • Side-by-side
  • Inline

Files

+ 9
1
"""
"""
This module is responsible for the communication to and from ATDB
This module is responsible for the communication to and from ATDB
"""
"""
from typing import List, Generator
from argparse import Namespace
from argparse import Namespace
 
from typing import List, Generator
 
import requests
import requests
@@ -122,6 +123,13 @@ class APIConnector:
@@ -122,6 +123,13 @@ class APIConnector:
for item in drf_reply.results:
for item in drf_reply.results:
yield item
yield item
 
def update_task_processed_size(self, task_id, processed_size):
 
"""
 
Change the whole task content
 
"""
 
return self._request_path("PUT", f"tasks/{task_id}",
 
content={"size_processed": processed_size})
 
def change_task_status(self, task_id, status) -> None:
def change_task_status(self, task_id, status) -> None:
"""
"""
Change the status of a task
Change the status of a task
Loading