From f5e6c6e1c6e0c565ea5bb0cc23cee982cca10ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 28 May 2024 17:27:33 +0200 Subject: [PATCH] fix: make description static. --- poetry.lock | 12 ++++++------ website/web/__init__.py | 6 +----- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/poetry.lock b/poetry.lock index 8d26007..9cde4a7 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1354,13 +1354,13 @@ files = [ [[package]] name = "prompt-toolkit" -version = "3.0.43" +version = "3.0.45" description = "Library for building powerful interactive command lines in Python" optional = false python-versions = ">=3.7.0" files = [ - {file = "prompt_toolkit-3.0.43-py3-none-any.whl", hash = "sha256:a11a29cb3bf0a28a387fe5122cdb649816a957cd9261dcedf8c9f1fef33eacf6"}, - {file = "prompt_toolkit-3.0.43.tar.gz", hash = "sha256:3527b7af26106cbc65a040bcc84839a3566ec1b051bb0bfe953631e704b0ff7d"}, + {file = "prompt_toolkit-3.0.45-py3-none-any.whl", hash = "sha256:a29b89160e494e3ea8622b09fa5897610b437884dcdcd054fdc1308883326c2a"}, + {file = "prompt_toolkit-3.0.45.tar.gz", hash = "sha256:07c60ee4ab7b7e90824b61afa840c8f5aad2d46b3e2e10acc33d8ecc94a49089"}, ] [package.dependencies] @@ -1959,13 +1959,13 @@ multidict = ">=4.0" [[package]] name = "zipp" -version = "3.18.2" +version = "3.19.0" description = "Backport of pathlib-compatible object wrapper for zip files" optional = false python-versions = ">=3.8" files = [ - {file = "zipp-3.18.2-py3-none-any.whl", hash = "sha256:dce197b859eb796242b0622af1b8beb0a722d52aa2f57133ead08edd5bf5374e"}, - {file = "zipp-3.18.2.tar.gz", hash = "sha256:6278d9ddbcfb1f1089a88fde84481528b07b0e10474e09dcfe53dad4069fa059"}, + {file = "zipp-3.19.0-py3-none-any.whl", hash = "sha256:96dc6ad62f1441bcaccef23b274ec471518daf4fbbc580341204936a5a3dddec"}, + {file = "zipp-3.19.0.tar.gz", hash = "sha256:952df858fb3164426c976d9338d3961e8e8b3758e2e059e0f754b8c4262625ee"}, ] [package.extras] diff --git a/website/web/__init__.py b/website/web/__init__.py index 796555d..72ac880 100644 --- a/website/web/__init__.py +++ b/website/web/__init__.py @@ -3,7 +3,6 @@ import json import pkg_resources -from datetime import date, timedelta from typing import Dict, List from flask import Flask, request @@ -22,11 +21,8 @@ app.config['SECRET_KEY'] = get_secret_key() -first_date = date.today() - timedelta(days=get_config('generic', 'days_in_memory')) -last_date = date.today() - api = Api(app, title='IP ASN History API', - description=f'API to query IPASN History (query interval: {first_date.isoformat()} - {last_date.isoformat()}).', + description=f'API to query IPASN History, the last {get_config("generic", "days_in_memory")} days are available.', version=pkg_resources.get_distribution('ipasnhistory').version) query: Query = Query()