diff options
author | Asbjørn Sloth Tønnesen <ast@a5n.dk> | 2024-11-07 22:03:54 +0000 |
---|---|---|
committer | Asbjørn Sloth Tønnesen <ast@a5n.dk> | 2024-11-07 22:03:54 +0000 |
commit | c5d012c019fcd7d564df706e34000c7121ceef16 (patch) | |
tree | 61a073aa216d1d7f4a6bbab1e0841ceb64bac458 | |
parent | a314f3ff2eff4e7fa62f67dfd1b6ebc7b619740b (diff) | |
download | peeringdb-simplesync-master.tar.gz peeringdb-simplesync-master.tar.xz peeringdb-simplesync-master.zip |
Signed-off-by: Asbjørn Sloth Tønnesen <ast@a5n.dk>
-rwxr-xr-x | sync.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -20,6 +20,7 @@ from config import get_config schema_name = get_config().get('db_schemad', 'peeringdb') domain_name = get_config().get('domain_name', 'www.peeringdb.com') +user_agent = 'peeringdb-simplesync/0.2' #logging.basicConfig(level=logging.DEBUG) @@ -193,7 +194,7 @@ def main(): handle_auth(s) req_agent = s.headers.get('User-Agent') - s.headers.update({'User-Agent': f'peeringdb-simplesync/0.1 {req_agent:s}'}) + s.headers.update({'User-Agent': f'{user_agent:s} {req_agent:s}'}) keys = get_config().get('object_types') if not keys: |