IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Verified Commit 97346b38 authored by Emi Simpson's avatar Emi Simpson
Browse files

Changed displaynames for pending tasks slightly

parent d78e94b7
......@@ -102,7 +102,7 @@ class CoordinatorConnection:
"""
project = source.project
res = 'Res' if rescan else 'S'
desc = f'{res}can {source.source_type}'
desc = f'{res}can {source.display_name()} {source.get_simplified_form()}'
backends: Dict[str, List[str]] = dict()
for source in source.expand_source():
existing_sources = backends.setdefault(source.source_type, list())
......
......@@ -138,7 +138,7 @@ class Source(NamedTuple):
class Git(Source):
@staticmethod
def display_name() -> str:
return 'Generic Git Repository'
return 'Generic Git Repo'
class GitHub(Source):
URL_REGEX = re.compile(r'https://github\.com/[\w\-]+/[\w\-]+/?$')
......@@ -163,7 +163,7 @@ class GitHub(Source):
@staticmethod
def display_name() -> str:
return 'GitHub'
return 'GitHub Repo'
class GitLab(Source):
URL_REGEX = re.compile(r'https://gitlab\.com/[\w\-]+/[\w\-]+/?')
......@@ -187,7 +187,7 @@ class GitLab(Source):
@staticmethod
def display_name() -> str:
return 'GitLab'
return 'GitLab Repo'
class Rss(Source):
@staticmethod
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment