Spaces:
Running
Running
Update convert.py
Browse files- convert.py +1 -1
convert.py
CHANGED
@@ -235,7 +235,7 @@ def previous_pr(api: "HfApi", model_id: str, pr_title: str) -> Optional["Discuss
|
|
235 |
except Exception:
|
236 |
return None
|
237 |
for discussion in discussions:
|
238 |
-
if discussion.
|
239 |
commits = api.list_repo_commits(model_id, revision=discussion.git_reference)
|
240 |
|
241 |
if main_commit == commits[1].commit_id:
|
|
|
235 |
except Exception:
|
236 |
return None
|
237 |
for discussion in discussions:
|
238 |
+
if discussion.is_pull_request and discussion.title == pr_title:
|
239 |
commits = api.list_repo_commits(model_id, revision=discussion.git_reference)
|
240 |
|
241 |
if main_commit == commits[1].commit_id:
|