From 61540b48b53019b2ca40b3124c3d621c29844688 Mon Sep 17 00:00:00 2001 From: Henrik Eliasson Date: Wed, 18 Aug 2021 15:42:59 +0200 Subject: [PATCH] add is_empty on unified exported repos --- hubgrep_indexer/models/repositories/gitea.py | 1 + hubgrep_indexer/models/repositories/github.py | 1 + hubgrep_indexer/models/repositories/gitlab.py | 1 + 3 files changed, 3 insertions(+) diff --git a/hubgrep_indexer/models/repositories/gitea.py b/hubgrep_indexer/models/repositories/gitea.py index ae5f0b3..dc3bdb6 100644 --- a/hubgrep_indexer/models/repositories/gitea.py +++ b/hubgrep_indexer/models/repositories/gitea.py @@ -78,6 +78,7 @@ class GiteaRepository(Repository): false as is_archived, false as is_disabled, mirror as is_mirror, + empty as is_empty, website as homepage_url, html_url as repo_url from diff --git a/hubgrep_indexer/models/repositories/github.py b/hubgrep_indexer/models/repositories/github.py index 20462d4..ca36fde 100644 --- a/hubgrep_indexer/models/repositories/github.py +++ b/hubgrep_indexer/models/repositories/github.py @@ -68,6 +68,7 @@ class GithubRepository(Repository): is_fork as is_fork, is_archived as is_archived, is_disabled as is_disabled, + is_empty as is_empty, false as is_mirror, homepage_url as homepage_url, url as repo_url diff --git a/hubgrep_indexer/models/repositories/gitlab.py b/hubgrep_indexer/models/repositories/gitlab.py index 7af7520..380d11a 100644 --- a/hubgrep_indexer/models/repositories/gitlab.py +++ b/hubgrep_indexer/models/repositories/gitlab.py @@ -105,6 +105,7 @@ class GitlabRepository(Repository): false as is_archived, false as is_disabled, false as is_mirror, + false as is_empty, web_url as homepage_url, http_url_to_repo as repo_url from