diff options
Diffstat (limited to 'app/dispatch/misc.py')
| -rw-r--r-- | app/dispatch/misc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/dispatch/misc.py b/app/dispatch/misc.py index c1d100a..d876cfd 100644 --- a/app/dispatch/misc.py +++ b/app/dispatch/misc.py @@ -64,7 +64,8 @@ def zip_attachments_for_loads(loads, pre_append, date): ext = '.pdf' # Get the name for the zip file - zipname = l.description + '-' + l.user.identity.name + ext + zipname = l.description + ' - ' + l.delivered_to + ' - ' + \ + l.user.identity.name + ext zipname = get_valid_filename(zipname) z.write(p.document.path, zipname) |
