fix: Prevent regenerating figure every time if nothing has changed
This commit is contained in:
parent
8a3c5159b5
commit
2a72a1d6fd
1 changed files with 3 additions and 3 deletions
6
plot.py
6
plot.py
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue