From: Michael Tremer Date: Thu, 12 Jul 2018 14:47:01 +0000 (+0100) Subject: Drop tools we no longer need X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eee01dfe25c118dc18e2d66f20b16daa149a34a2;p=ipfire.org.git Drop tools we no longer need Signed-off-by: Michael Tremer --- 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