aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <ast@a5n.dk>2024-11-07 22:03:54 +0000
committerAsbjørn Sloth Tønnesen <ast@a5n.dk>2024-11-07 22:03:54 +0000
commitc5d012c019fcd7d564df706e34000c7121ceef16 (patch)
tree61a073aa216d1d7f4a6bbab1e0841ceb64bac458
parenta314f3ff2eff4e7fa62f67dfd1b6ebc7b619740b (diff)
downloadpeeringdb-simplesync-c5d012c019fcd7d564df706e34000c7121ceef16.tar.gz
peeringdb-simplesync-c5d012c019fcd7d564df706e34000c7121ceef16.tar.xz
peeringdb-simplesync-c5d012c019fcd7d564df706e34000c7121ceef16.zip
bump user_agent versionHEADmaster
Signed-off-by: Asbjørn Sloth Tønnesen <ast@a5n.dk>
-rwxr-xr-xsync.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sync.py b/sync.py
index 2f9e126..c9e8820 100755
--- a/sync.py
+++ b/sync.py
@@ -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: