diff --git a/script/local.py b/script/local.py index 5189eb5..7ac7eb5 100755 --- a/script/local.py +++ b/script/local.py @@ -106,8 +106,8 @@ def elogllrf(subject, message, system, subsystem, section, attachments = []): cmd = cmd + '-a "Subsystem=' + subsystem + '" ' cmd = cmd + '-a "Machine=SwissFEL" ' cmd = cmd + '-a "Domain=All"' - for attachment in attachments: - cmd = cmd + '-f "' + attachment + '" ' + for i in attachments: + cmd = cmd + '-f "' + attachments[i] + '" ' cmd = cmd + ' -x -n 1' cmd = cmd + ' "' + message + '"' print cmd