Show More
@@ -3834,7 +3834,7 b' class ChangesetComment(Base, BaseModel):' | |||
|
3834 | 3834 | return q.all() |
|
3835 | 3835 | |
|
3836 | 3836 | @classmethod |
|
3837 | def get_index_from_version(cls, pr_version, versions=None, num_versions=None): | |
|
3837 | def get_index_from_version(cls, pr_version, versions=None, num_versions=None) -> int: | |
|
3838 | 3838 | if pr_version is None: |
|
3839 | 3839 | return 0 |
|
3840 | 3840 | |
@@ -3845,7 +3845,7 b' class ChangesetComment(Base, BaseModel):' | |||
|
3845 | 3845 | try: |
|
3846 | 3846 | return num_versions.index(pr_version) + 1 |
|
3847 | 3847 | except (IndexError, ValueError): |
|
3848 | return | |
|
3848 | return 0 | |
|
3849 | 3849 | |
|
3850 | 3850 | @property |
|
3851 | 3851 | def outdated(self): |
General Comments 0
You need to be logged in to leave comments.
Login now