From eee01dfe25c118dc18e2d66f20b16daa149a34a2 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 12 Jul 2018 15:47:01 +0100 Subject: [PATCH] Drop tools we no longer need Signed-off-by: Michael Tremer --- tools/backend | 1 - tools/migrate-fireinfo.py | 35 ----------------------------------- 2 files changed, 36 deletions(-) delete mode 120000 tools/backend delete mode 100644 tools/migrate-fireinfo.py diff --git a/tools/backend b/tools/backend deleted file mode 120000 index 11d7b316..00000000 --- a/tools/backend +++ /dev/null @@ -1 +0,0 @@ -../webapp/backend/ \ No newline at end of file diff --git a/tools/migrate-fireinfo.py b/tools/migrate-fireinfo.py deleted file mode 100644 index e1030e04..00000000 --- a/tools/migrate-fireinfo.py +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/python - -import pymongo - -import backend - -DATABASE_HOSTS = [ - "falco.ipfire.org", - "wilhelmina.ipfire.org", - "miranda.ipfire.org", -] - -connection = pymongo.Connection(DATABASE_HOSTS) -db = connection["stasy"] - -b = backend.Backend("webapp.conf") - -c = db.archives.find().sort("updated", pymongo.ASCENDING) - -for profile in c: - public_id = profile.get("public_id") - when = profile.get("updated") - - print public_id - - location = None - if profile.has_key("geoip") and profile["geoip"]: - location = profile["geoip"]["country_code"] - - print "Importing profile %s..." % public_id - try: - b.fireinfo.handle_profile(public_id, profile, location=location, when=when) - except: - print profile - raise -- 2.47.3