diff --git a/ecosystem_issues.py b/ecosystem_issues.py index c731d68..6f24a48 100644 --- a/ecosystem_issues.py +++ b/ecosystem_issues.py @@ -3,9 +3,10 @@ """ import logging -import time import os +import time from datetime import datetime, timedelta + import psycopg2 from github import Github diff --git a/failed_zuul.py b/failed_zuul.py index bc41292..e581498 100644 --- a/failed_zuul.py +++ b/failed_zuul.py @@ -8,10 +8,10 @@ import re import time from datetime import datetime + import psycopg2 import requests - logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') start_time = time.time() diff --git a/gitea_info.py b/gitea_info.py index 8f23406..b9f4266 100644 --- a/gitea_info.py +++ b/gitea_info.py @@ -9,6 +9,7 @@ import pathlib import re import time + import psycopg2 import requests from github import Github diff --git a/github_info.py b/github_info.py index 2994d1b..36dc616 100644 --- a/github_info.py +++ b/github_info.py @@ -6,6 +6,7 @@ import os import re import time + import psycopg2 import requests from github import Github diff --git a/last_commit_info.py b/last_commit_info.py index 73d410a..c13126a 100644 --- a/last_commit_info.py +++ b/last_commit_info.py @@ -2,16 +2,16 @@ This script provides logic to retrieve info about last date when document was updated """ -from datetime import datetime import logging import os import shutil import tempfile import time +from datetime import datetime + import psycopg2 from github import Github - logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') start_time = time.time() diff --git a/open_issues.py b/open_issues.py index 6b153c5..3bdda61 100644 --- a/open_issues.py +++ b/open_issues.py @@ -2,17 +2,17 @@ This script gather info regarding open issues in Gitea and Github """ -import time import json import logging import os import re +import time from datetime import datetime -import requests + import psycopg2 +import requests from github import Github - logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') start_time = time.time() diff --git a/otc_services_dict.py b/otc_services_dict.py index bdcfc34..e7e9580 100644 --- a/otc_services_dict.py +++ b/otc_services_dict.py @@ -7,11 +7,11 @@ import logging import os import time + import psycopg2 import requests import yaml - logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') start_time = time.time() diff --git a/scheduler.py b/scheduler.py index fcbecb0..ef9468c 100644 --- a/scheduler.py +++ b/scheduler.py @@ -7,6 +7,7 @@ import time from datetime import datetime from urllib.parse import quote + import psycopg2 import zulip from psycopg2.extras import DictCursor