Skip to content

Commit

Permalink
fix: disabled always_update in update_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 3, 2023
1 parent 8340cb8 commit 65a3d37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/update_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ def _update_metadata(link):
except Exception as e:
print(f" Error: {e}")

always_update = True
max_days = 2
always_update = False
max_days = 1

# Update the existing entries, if it's been more than 3 days:
# Update the existing entries, if it's been more than max_days
for link in metamap:
d = datetime.fromisoformat(metamap[link]["updated"])
if always_update or (datetime.now() - d).days > max_days:
Expand Down

0 comments on commit 65a3d37

Please sign in to comment.