utils update: moving some parameters to settings

This commit is contained in:
tmshv committed 2016-08-04 23:35:39 +03:00
1 parent 8143e21388
commit 24b28e6e4d
5 files changed
+106 -69

No files matched your search

+6
View File
@@ -1,4 +1,5 @@
from db import db
from settings import image_name_format, image_base_url
from utils.fn import lmap
@@ -58,3 +59,8 @@ def sync_image(record):
pass
return None
def image_create_url(file):
url = image_base_url + image_name_format
return url.format(file)