GodsDevProject commited on
Commit
642305d
·
verified ·
1 Parent(s): c4b3993

Create ingest/registry.py

Browse files
Files changed (1) hide show
  1. ingest/registry.py +15 -23
ingest/registry.py CHANGED
@@ -1,24 +1,16 @@
1
- from ingest.adapters.cia import CIAAdapter
2
- from ingest.adapters.stub import StubAdapter
 
 
 
 
 
 
3
 
4
- def get_live_adapters():
5
- adapters = [
6
- CIAAdapter(),
7
- ]
8
- return {
9
- a.source_name: a
10
- for a in adapters
11
- if a.live and a.robots_allowed()
12
- }
13
-
14
- def get_stub_adapters():
15
- return {
16
- "NSA": StubAdapter("NSA", "robots.txt blocks automated access"),
17
- "NRO": StubAdapter("NRO", "no public electronic reading room"),
18
- "SAP": StubAdapter("SAP", "special access programs are exempt"),
19
- "TEN-CAP": StubAdapter("TEN-CAP", "no public FOIA search endpoint"),
20
- "AATIP": StubAdapter("AATIP", "no standalone FOIA library"),
21
- "Special Activities": StubAdapter("Special Activities", "intelligence protected"),
22
- "DIA": StubAdapter("DIA", "robots.txt blocks automated access"),
23
- "NGA": StubAdapter("NGA", "robots.txt blocks automated access"),
24
- }
 
1
+ from .live_adapters import (
2
+ FBIVaultAdapter,
3
+ CIAReadingRoomAdapter,
4
+ )
5
+ from .stub_adapters import (
6
+ NSAStubAdapter,
7
+ NGAStubAdapter,
8
+ )
9
 
10
+ def get_all_adapters():
11
+ return [
12
+ FBIVaultAdapter(),
13
+ CIAReadingRoomAdapter(),
14
+ NSAStubAdapter(),
15
+ NGAStubAdapter(),
16
+ ]