1
0
Fork 0

fix: Prevent regenerating figure every time if nothing has changed

This commit is contained in:
Benedikt Bastin 2021-02-17 12:15:07 +01:00
parent 8a3c5159b5
commit 2a72a1d6fd
1 changed files with 3 additions and 3 deletions

View File

@ -635,9 +635,9 @@ def plot_vaccination_rate():
archive_plot_filename = '{}/vaccination_rate'.format(archive_folder)
latest_plot_filename = '{}/vaccination_rate'.format(site_folder)
#if os.path.isfile(archive_plot_filename + '.pdf'):
#print('Plot {} already exists'.format(archive_plot_filename))
#return
if os.path.isfile(archive_plot_filename + '.pdf'):
print('Plot {} already exists'.format(archive_plot_filename))
return
fig, ax = plt.subplots(1)