Skip to content

Commit 36f7be5

Browse files
committed
Remove hacking license tags when mirroring datasets on the Hub
1 parent b7aab3a commit 36f7be5

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

.github/hub/update_hub_repositories.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,6 @@ def check_authorizations(user_info: dict):
105105
)
106106

107107

108-
def apply_hacks_for_moon_landing(dataset_repo_path: Path):
109-
if (dataset_repo_path / "README.md").is_file():
110-
with (dataset_repo_path / "README.md").open() as f:
111-
readme_content = f.read()
112-
if readme_content.count("---\n") > 1:
113-
_, tags, content = readme_content.split("---\n", 2)
114-
tags = tags.replace("\nlicense:", "\nlicenses:").replace(".", "-").replace("$", "%")
115-
with (dataset_repo_path / "README.md").open("w") as f:
116-
f.write("---\n".join(["", tags, content]))
117-
118-
119108
class update_main:
120109
def __init__(
121110
self,

0 commit comments

Comments
 (0)