Remove stubbed code

This commit is contained in:
zandercymatics 2023-11-27 09:16:45 -07:00
parent 00f66e568d
commit 1b1a241101
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -1,6 +1,5 @@
"""Internal API views"""
import os
from datetime import datetime, timezone
from django.apps import apps
from django.views.decorators.http import require_http_methods
from django.http import FileResponse, HttpResponse, JsonResponse
@ -103,11 +102,6 @@ def get_current_full(request):
@require_http_methods(["GET"])
@login_not_required
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"
return serve_file(file_path)
@ -118,7 +112,4 @@ def serve_file(file_path):
response = FileResponse(open(file_path, "rb"))
return response
else:
return HttpResponse("File not found", status=404)
def generate_new_file():
pass
return HttpResponse("File not found", status=404)