Skip to content

Commit

Permalink
Remove etags from diffs (#3964)
Browse files Browse the repository at this point in the history
* Remove etags from diffs

* Actually remove them

* fix the syntax
  • Loading branch information
ludeeus authored Aug 13, 2024
1 parent 60a80d3 commit a44c61a
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions scripts/data/generate_category_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,13 @@ async def generate_category_data(category: str, repository_name: str = None):
encoding="utf-8",
) as data_file:
json.dump(
current_data,
{
i: {
k: v
for k, v in d.items() if k not in {"etag_releases", "etag_repository"}
}
for i, d in current_data.items()
},
data_file,
cls=JSONEncoder,
sort_keys=True,
Expand All @@ -563,7 +569,13 @@ async def generate_category_data(category: str, repository_name: str = None):
encoding="utf-8",
) as data_file:
json.dump(
updated_data,
{
i: {
k: v
for k, v in d.items() if k not in {"etag_releases", "etag_repository"}
}
for i, d in updated_data.items()
},
data_file,
cls=JSONEncoder,
sort_keys=True,
Expand Down

0 comments on commit a44c61a

Please sign in to comment.