Cache attachment one by one
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import os
|
||||
from datetime import datetime
|
||||
from datetime import timezone
|
||||
from typing import Any
|
||||
from typing import Dict
|
||||
|
||||
from poussetaches import PousseTaches
|
||||
|
||||
@@ -56,6 +58,10 @@ class Tasks:
|
||||
def cache_attachments(iri: str) -> None:
|
||||
p.push(iri, "/task/cache_attachments")
|
||||
|
||||
@staticmethod
|
||||
def cache_attachment(attachment: Dict[str, Any], iri: str) -> None:
|
||||
p.push({"iri": iri, "attachment": attachment}, "/task/cache_attachment")
|
||||
|
||||
@staticmethod
|
||||
def finish_post_to_inbox(iri: str) -> None:
|
||||
p.push(iri, "/task/finish_post_to_inbox")
|
||||
|
Reference in New Issue
Block a user