From 207233125d27f98568b351a63926951158872a12 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Sun, 29 Mar 2020 01:38:35 +0300 Subject: [PATCH] sync wrong document fix --- modules/sync/sync/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/sync/sync/__init__.py b/modules/sync/sync/__init__.py index 7aa6cfad..572ed51c 100644 --- a/modules/sync/sync/__init__.py +++ b/modules/sync/sync/__init__.py @@ -79,6 +79,7 @@ async def create_post(provider: Provider, folder: str, md: str, sizes): title = data['caption'] if title: document.set_title(title) + await document.save() if not document: raise Exception(f'Failed to build Document {filepath}')