mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-18 02:19:23 +02:00
Fix linting failures
This commit is contained in:
parent
53906d339f
commit
b425a45ef2
4 changed files with 15 additions and 4 deletions
|
@ -10,7 +10,9 @@ import requests
|
|||
|
||||
from cachetools.func import ttl_cache
|
||||
|
||||
DOMAIN_FILE_URL = "https://raw.githubusercontent.com/cisagov/dotgov-data/main/current-full.csv"
|
||||
DOMAIN_FILE_URL = (
|
||||
"https://raw.githubusercontent.com/cisagov/dotgov-data/main/current-full.csv"
|
||||
)
|
||||
|
||||
|
||||
# this file doesn't change that often, nor is it that big, so cache the result
|
||||
|
@ -52,4 +54,3 @@ def available(request, domain=""):
|
|||
"""
|
||||
# a domain is available if it is NOT in the list of current domains
|
||||
return JsonResponse({"available": not in_domains(domain)})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue