Skip to content

Commit 6903121

Browse files
committed
better logic
1 parent ff01c12 commit 6903121

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

middleware/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ async def main():
329329
transform_publisso_to_publisso_schemaorg()
330330
if sitemap["name"] == "openagrar":
331331
extract_thunen_from_openagrar_metadata()
332-
if git_repo and "_native.json" not in path.name:
332+
if git_repo and not path.name.endswith("_native.json"):
333333
# if a git repo is set, we commit all files except those ending in _native.json
334334
commit_to_git(scraper_config.url, git_repo, path, starttime)
335335

0 commit comments

Comments
 (0)