utils update: moving some parameters to settings
This commit is contained in:
1 parent
8143e21388
commit
24b28e6e4d
5 files changed
+106
-69
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user