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