[Sync] refactoring, removed old code, cleanup
This commit is contained in:
1 parent
32843f4d09
commit
84745ead6d
17 files changed
+61
-248
No files matched your search
@@ -1,16 +1,13 @@
|
||||
import os
|
||||
import re
|
||||
from datetime import datetime
|
||||
from glob import glob
|
||||
from lxml import etree
|
||||
|
||||
import lxml.html
|
||||
from markdown import markdown
|
||||
|
||||
import settings
|
||||
from sync.image import sync_image
|
||||
from sync.models import Model
|
||||
from utils.fn import lmap, combine
|
||||
|
||||
|
||||
def create_date(date_str, date_formats=None):
|
||||
@@ -66,14 +63,6 @@ async def untouched(items: [Model]) -> [Model]:
|
||||
# return filtered_documents
|
||||
|
||||
|
||||
def synced_images_ids(images):
|
||||
return [i['_id'] for i in sync_image(images)]
|
||||
|
||||
|
||||
def synced_image_id(image):
|
||||
return sync_image(image)['_id']
|
||||
|
||||
|
||||
def create_date_and_title_from_folder_name(folder_name, date_formats=None):
|
||||
m = folder_name_pattern.findall(folder_name)
|
||||
if not m:
|
||||
|
||||
Reference in new issue
Block a user