FOIA_Doc_Search / citations.py
GodsDevProject's picture
Create citations.py
bc517db verified
raw
history blame
423 Bytes
from datetime import datetime
def bluebook_exhibit(r, exhibit_no):
return (
f"Exhibit A-{exhibit_no}. {r['agency']}, "
f"{r['title']}, FOIA Electronic Reading Room, "
f"{r['url']} (retrieved {datetime.utcnow().strftime('%b %d, %Y')})."
)
def table_of_authorities(results):
return [
f"Exhibit A-{i+1}: {r['agency']}{r['title']}"
for i, r in enumerate(results)
]