move create_post_from_image_list to Article (usage only there)

This commit is contained in:
tmshv committed 2020-02-29 01:02:04 +03:00
1 parent a2a73034da
commit 092fa4578b
2 files changed
+11 -12

No files matched your search

-10
View File
@@ -3,8 +3,6 @@ import re
from datetime import datetime
import lxml.html
from markdown import markdown
import kazimir
import settings
from kazimir.CSVToken import CSVToken
@@ -181,11 +179,3 @@ def title_from_html(md):
titles = html.cssselect('h1')
if len(titles):
return titles[0].text
create_post_from_image_list = lambda images: markdown(
'\n'.join(map(
lambda i: '![]({img})'.format(img=i),
images
))
)