Spaces:
Sleeping
Sleeping
Create citations.py
Browse files- citations.py +11 -8
citations.py
CHANGED
|
@@ -1,11 +1,14 @@
|
|
| 1 |
from datetime import datetime
|
| 2 |
|
| 3 |
-
def
|
| 4 |
-
accessed = datetime.utcnow().strftime("%Y-%m-%d")
|
| 5 |
return (
|
| 6 |
-
f"
|
| 7 |
-
f"
|
| 8 |
-
f"
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from datetime import datetime
|
| 2 |
|
| 3 |
+
def bluebook_exhibit(r, exhibit_no):
|
|
|
|
| 4 |
return (
|
| 5 |
+
f"Exhibit A-{exhibit_no}. {r['agency']}, "
|
| 6 |
+
f"{r['title']}, FOIA Electronic Reading Room, "
|
| 7 |
+
f"{r['url']} (retrieved {datetime.utcnow().strftime('%b %d, %Y')})."
|
| 8 |
+
)
|
| 9 |
+
|
| 10 |
+
def table_of_authorities(results):
|
| 11 |
+
return [
|
| 12 |
+
f"Exhibit A-{i+1}: {r['agency']} — {r['title']}"
|
| 13 |
+
for i, r in enumerate(results)
|
| 14 |
+
]
|