]> git.ipfire.org Git - ipfire.org.git/commitdiff
Drop tools we no longer need
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 12 Jul 2018 14:47:01 +0000 (15:47 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 12 Jul 2018 14:47:01 +0000 (15:47 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tools/backend [deleted symlink]
tools/migrate-fireinfo.py [deleted file]

diff --git a/tools/backend b/tools/backend
deleted file mode 120000 (symlink)
index 11d7b31..0000000
+++ /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 (file)
index e1030e0..0000000
+++ /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