diff --git a/Library-Notification-Service/src/api.py b/Library-Notification-Service/src/api.py index bb73c51..4ea5199 100644 --- a/Library-Notification-Service/src/api.py +++ b/Library-Notification-Service/src/api.py @@ -1,6 +1,5 @@ """Module interacting with library catalogue api""" - import json import urllib.parse from typing import List diff --git a/Library-Notification-Service/src/env.py b/Library-Notification-Service/src/env.py index 6a8f401..e39bdd2 100644 --- a/Library-Notification-Service/src/env.py +++ b/Library-Notification-Service/src/env.py @@ -1,6 +1,5 @@ """Module to retreive/declare the environment variables.""" - import os MAX_NOTIFICATION_RESULTS_COUNT = os.environ["MAX_NOTIFICATION_RESULTS_COUNT"] @@ -20,3 +19,14 @@ NOTIFICATIONS_API_URL = os.environ["NOTIFICATIONS_API_URL"] NOTIFICATIONS_API_SECRET = os.environ["NOTIFICATIONS_API_SECRET"] NOTIFICATIONS_CHANNEL_ID = os.environ["NOTIFICATIONS_CHANNEL_ID"] + + +""" +export MAX_NOTIFICATION_RESULTS_COUNT=20 +export LIBRARY_CATALOGUE_SITE_API="https://catalogue.library.cern/api/literature/?q=" +export LIBRARY_CATALOGUE_SITE_URL="https://catalogue.library.cern/search?q=" +export LIBRARY_CATALOGUE_BACKOFFICE_ITEMS_API="https://catalogue.library.cern/api/items/?q=" +export LIBRARY_CATALOGUE_BACKOFFICE_EITEMS_API="https://catalogue.library.cern/api/eitems/?q=" +export NOTIFICATIONS_API_URL="https://notifications.web.cern.ch/api/notifications" +export NOTIFICATIONS_CHANNEL_ID="4e383ca0-7df0-421f-a062-741d5d459cd8" +""" diff --git a/Library-Notification-Service/src/providers/library_newsletter.py b/Library-Notification-Service/src/providers/library_newsletter.py index 60dc7da..633884f 100644 --- a/Library-Notification-Service/src/providers/library_newsletter.py +++ b/Library-Notification-Service/src/providers/library_newsletter.py @@ -1,6 +1,5 @@ """The command line module containing all the commands to filter documents.""" - from typing import Tuple import click