schemas: import update script
This commit is contained in:
parent
28baba18d2
commit
8f708072e8
3 changed files with 81 additions and 0 deletions
17
scripts/update_schemas.py
Normal file
17
scripts/update_schemas.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.abspath('..'))
|
||||
|
||||
from app.lists.bc2 import BypassCensorship2
|
||||
from app.lists.bridgelines import Bridgelines
|
||||
from app.lists.mirror_mapping import MirrorMapping
|
||||
|
||||
with open("../schemas/bc2.json", "w") as out:
|
||||
out.write(BypassCensorship2.schema_json(indent=2))
|
||||
|
||||
with open("../schemas/bridgelines.json", "w") as out:
|
||||
out.write(Bridgelines.schema_json(indent=2))
|
||||
|
||||
with open("../schemas/mirror-mapping.json", "w") as out:
|
||||
out.write(MirrorMapping.schema_json(indent=2))
|
Loading…
Add table
Add a link
Reference in a new issue