Skip to content

Commit

Permalink
fix: make description static.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed May 28, 2024
1 parent b5634b0 commit f5e6c6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
12 changes: 6 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions website/web/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import json
import pkg_resources

from datetime import date, timedelta
from typing import Dict, List

from flask import Flask, request
Expand All @@ -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()
Expand Down

0 comments on commit f5e6c6e

Please sign in to comment.