mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-12 14:08:28 +02:00
Remove stubbed code
This commit is contained in:
parent
00f66e568d
commit
1b1a241101
1 changed files with 1 additions and 10 deletions
|
@ -1,6 +1,5 @@
|
||||||
"""Internal API views"""
|
"""Internal API views"""
|
||||||
import os
|
import os
|
||||||
from datetime import datetime, timezone
|
|
||||||
from django.apps import apps
|
from django.apps import apps
|
||||||
from django.views.decorators.http import require_http_methods
|
from django.views.decorators.http import require_http_methods
|
||||||
from django.http import FileResponse, HttpResponse, JsonResponse
|
from django.http import FileResponse, HttpResponse, JsonResponse
|
||||||
|
@ -103,11 +102,6 @@ def get_current_full(request):
|
||||||
@require_http_methods(["GET"])
|
@require_http_methods(["GET"])
|
||||||
@login_not_required
|
@login_not_required
|
||||||
def get_current_federal(request):
|
def get_current_federal(request):
|
||||||
now = datetime.now(timezone.utc)
|
|
||||||
# Check if the current time is 5 AM
|
|
||||||
if now.hour == 5:
|
|
||||||
generate_new_file()
|
|
||||||
|
|
||||||
file_path = "migrationdata/current-federal.csv"
|
file_path = "migrationdata/current-federal.csv"
|
||||||
return serve_file(file_path)
|
return serve_file(file_path)
|
||||||
|
|
||||||
|
@ -119,6 +113,3 @@ def serve_file(file_path):
|
||||||
return response
|
return response
|
||||||
else:
|
else:
|
||||||
return HttpResponse("File not found", status=404)
|
return HttpResponse("File not found", status=404)
|
||||||
|
|
||||||
def generate_new_file():
|
|
||||||
pass
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue