Spaces:
Running
Running
Allow running conversion after closing a previous PR.
#21
by
rwightman
HF staff
- opened
- convert.py +1 -1
convert.py
CHANGED
@@ -232,7 +232,7 @@ def previous_pr(api: "HfApi", model_id: str, pr_title: str, revision=Optional[st
|
|
232 |
except Exception:
|
233 |
return None
|
234 |
for discussion in discussions:
|
235 |
-
if discussion.status
|
236 |
commits = api.list_repo_commits(model_id, revision=discussion.git_reference)
|
237 |
|
238 |
if revision_commit == commits[1].commit_id:
|
|
|
232 |
except Exception:
|
233 |
return None
|
234 |
for discussion in discussions:
|
235 |
+
if discussion.status == "open" and discussion.is_pull_request and discussion.title == pr_title:
|
236 |
commits = api.list_repo_commits(model_id, revision=discussion.git_reference)
|
237 |
|
238 |
if revision_commit == commits[1].commit_id:
|