cleaning github token env vars

This commit is contained in:
Vinicius Moreira
2019-10-17 12:26:00 -03:00
parent e6ab2b0ec6
commit 7750b0b9df
3 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ class DatabaseUpdater(Thread if bool(int(os.getenv('BAUH_DEBUG', 0))) else Proce
def _download_databases(self):
self.logger.info('Retrieving AppImage databases')
res = self.http_client.get(self.URL_DB, headers={'Authorization': 'token {}'.format(os.getenv('GITHUB_TOKEN'))})
res = self.http_client.get(self.URL_DB)
if res:
Path(LOCAL_PATH).mkdir(parents=True, exist_ok=True)

View File

@@ -149,7 +149,7 @@ class CategoriesDownloader:
def get_categories(self) -> Dict[str, List[str]]:
self.logger.info('Downloading AUR category definitions from {}'.format(self.URL_CATEGORIES_FILE))
res = self.http_client.get(self.URL_CATEGORIES_FILE, headers={'Authorization': 'token {}'.format(os.getenv('GITHUB_TOKEN'))})
res = self.http_client.get(self.URL_CATEGORIES_FILE)
if res:
categories_map = {}

View File

@@ -85,7 +85,7 @@ class CategoriesDownloader:
def get_categories(self) -> Dict[str, List[str]]:
self.logger.info('Downloading Snap category definitions from {}'.format(self.URL_CATEGORIES_FILE))
res = self.http_client.get(self.URL_CATEGORIES_FILE, headers={'Authorization': 'token {}'.format(os.getenv('GITHUB_TOKEN'))})
res = self.http_client.get(self.URL_CATEGORIES_FILE)
if res:
categories_map = {}