Show More
@@ -535,6 +535,11 b' class Repository(Base, BaseModel):' | |||||
535 | return q.scalar() |
|
535 | return q.scalar() | |
536 |
|
536 | |||
537 | @classmethod |
|
537 | @classmethod | |
|
538 | def get_by_full_path(cls, repo_full_path): | |||
|
539 | repo_name = repo_full_path.split(cls.base_path(), 1)[-1] | |||
|
540 | return cls.get_by_repo_name(repo_name.strip(URL_SEP)) | |||
|
541 | ||||
|
542 | @classmethod | |||
538 | def get_repo_forks(cls, repo_id): |
|
543 | def get_repo_forks(cls, repo_id): | |
539 | return cls.query().filter(Repository.fork_id == repo_id) |
|
544 | return cls.query().filter(Repository.fork_id == repo_id) | |
540 |
|
545 |
General Comments 0
You need to be logged in to leave comments.
Login now