Skip to content

Commit 5b6029e

Browse files
author
Sterling Baldwin
committed
Fix for aprime notification email link
1 parent 5f6ba7d commit 5b6029e

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

jobs/aprime.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,12 @@ def handle_completion(self, filemanager, event_list, config):
157157
config['img_hosting']['host_directory'],
158158
self.short_name,
159159
'aprime')
160-
161-
# self.setup_hosting(
162-
# config,
163-
# img_source,
164-
# self._host_path,
165-
# event_list)
166160

167-
self._host_url = 'https://{server}/{prefix}/{case}/aprime/{case}_years{start}-{end}_vs_{comp}/index.html'.format(
161+
self._host_url = 'https://{server}/{prefix}/{short_name}/aprime/{case}_years{start}-{end}_vs_{comp}/index.html'.format(
168162
server=config['img_hosting']['img_host_server'],
169163
prefix=config['img_hosting']['url_prefix'],
170-
case=self.short_name,
164+
short_name=self.short_name,
165+
case=self.case,
171166
start=self.start_year,
172167
end=self.end_year,
173168
comp=self._short_comp_name)
@@ -178,8 +173,8 @@ def _check_links(self, config):
178173
returns True if all the links are found, False otherwise
179174
"""
180175
found = False
181-
host_directory = "{experiment}_years{start}-{end}_vs_{comp}".format(
182-
experiment=self.case,
176+
host_directory = "{case}_years{start}-{end}_vs_{comp}".format(
177+
case=self.case,
183178
start=self.start_year,
184179
end=self.end_year,
185180
comp=self._short_comp_name)

0 commit comments

Comments
 (0)