Remove commented-out references to old clickthrus table
authorMagnus Hagander <magnus@hagander.net>
Tue, 6 Oct 2015 12:33:10 +0000 (14:33 +0200)
committerMagnus Hagander <magnus@hagander.net>
Tue, 6 Oct 2015 12:33:10 +0000 (14:33 +0200)
This table is now dropped from the master, so remove it from here
so that nobody tries to re-use that code...

pgweb/downloads/views.py

index 4084eca340b828ecc0eeff52a4c3c605511a389a..e46c48b576639d85fdaa1eb12af1734f22166556 100644 (file)
@@ -146,18 +146,6 @@ def mirrorselect(request, path):
 # At some time in the future we might consider hijacking them and sending
 # them to our master mirrors again.
 def _mirror_redirect_internal(request, scheme, host, path):
-       # Log the access
-#      curs = connection.cursor()
-#      curs.execute("""INSERT INTO clickthrus (scheme, host, path, country)
-#VALUES (%(scheme)s, %(host)s, %(path)s, (
-#SELECT countrycode FROM iptocountry WHERE %(ip)s BETWEEN startip and endip LIMIT 1))""", {
-#              'scheme': scheme,
-#              'host': host,
-#              'path': path,
-#              'ip': _get_numeric_ip(request),
-#})
-#      transaction.commit_unless_managed()
-
        # Redirect!
        newurl = "%s://%s/%s" % (scheme, host, path)
        return HttpResponseRedirect(newurl)