Skip to content

Commit

Permalink
[CHANGE] Set user agent according to MDN guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeufer committed Dec 15, 2024
1 parent 2200760 commit 8c6246c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ Section Order:
### Security
-->

### Changed

- Set user agent according to MDN guidelines

## [2.5.2] - 2024-12-14

### Added
Expand Down
11 changes: 6 additions & 5 deletions aa_intel_tool/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
import re

# Django
from django.utils.text import slugify
from django.utils.translation import gettext_lazy as _

# Alliance Auth
from esi import __version__ as esi_version

# AA Intel Tool
import aa_intel_tool.parser.module.chatlist
import aa_intel_tool.parser.module.dscan
Expand Down Expand Up @@ -76,7 +78,6 @@


# Building our user agent for ESI calls
VERBOSE_NAME = "AA Intel Tool"
verbose_name_slugified: str = slugify(VERBOSE_NAME, allow_unicode=True)
github_url: str = "https://github.com/ppfeufer/aa-intel-tool"
USER_AGENT = f"{verbose_name_slugified} v{__version__} {github_url}"
APP_NAME = "aa-intel-tool"
GITHUB_URL = f"https://github.com/ppfeufer/{APP_NAME}"
USER_AGENT = f"{APP_NAME}/{__version__} ({GITHUB_URL}) via django-esi/{esi_version}"

0 comments on commit 8c6246c

Please sign in to comment.