aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <ast@fiberby.net>2020-01-26 19:02:46 +0000
committerAsbjørn Sloth Tønnesen <ast@fiberby.net>2020-01-26 19:02:46 +0000
commit341839955fca57a4cfe8908e37b3a0fba45a2c2f (patch)
tree50088d5872c77062b39258a7f40d1d5c3258072d
parentc59f1d55b8942e41f96f868e39edff67c47434e2 (diff)
downloadpeeringdb-simplesync-341839955fca57a4cfe8908e37b3a0fba45a2c2f.tar.gz
peeringdb-simplesync-341839955fca57a4cfe8908e37b3a0fba45a2c2f.tar.xz
peeringdb-simplesync-341839955fca57a4cfe8908e37b3a0fba45a2c2f.zip
fixed to work with API changes in v2.18.0
Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
-rwxr-xr-xsync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sync.py b/sync.py
index c256147..15d1983 100755
--- a/sync.py
+++ b/sync.py
@@ -157,7 +157,7 @@ def main():
ignored = [ 'as_set' ]
apidoc = json.loads(r.text)
- for key in apidoc:
+ for key in apidoc['api']:
if key[0] == '_' or key in ignored: continue
try:
sync_table(s, key)