mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 22:37:08 +00:00
formatting
This commit is contained in:
@@ -434,9 +434,10 @@ def save_original_in_expofiles(f, year, photographer, host, handbook_directory,
|
|||||||
will catch photos uploaded directly from phones which otherwise never
|
will catch photos uploaded directly from phones which otherwise never
|
||||||
get recorded properly in original format.
|
get recorded properly in original format.
|
||||||
|
|
||||||
Django does small files <2.5 MB in memory, which is a pain.
|
Django does small files <2.5 MB in memory, which is a pain, as we can't simply move them.
|
||||||
|
|
||||||
to do: also store a *.url file with the image file saying where it is used in the handbook.
|
to do: also store a *.url file with the image file saying where it is used in the handbook.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if photographer:
|
if photographer:
|
||||||
photographer = photographer.strip().replace(" ","")
|
photographer = photographer.strip().replace(" ","")
|
||||||
@@ -478,7 +479,6 @@ def save_original_in_expofiles(f, year, photographer, host, handbook_directory,
|
|||||||
def write_url_file(targetpath, host, handbook_rel_path, page):
|
def write_url_file(targetpath, host, handbook_rel_path, page):
|
||||||
# the ".url" is there, just never visible in Windows Explorer.
|
# the ".url" is there, just never visible in Windows Explorer.
|
||||||
|
|
||||||
|
|
||||||
# FIND AND FIX the correct host for this !
|
# FIND AND FIX the correct host for this !
|
||||||
content = f"[InternetShortcut]\nURL={page}\n\n[TroggleImage]\nURL=http://{host}/{handbook_rel_path}"
|
content = f"[InternetShortcut]\nURL={page}\n\n[TroggleImage]\nURL=http://{host}/{handbook_rel_path}"
|
||||||
print(content)
|
print(content)
|
||||||
|
|||||||
Reference in New Issue
Block a user