X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/85b17e5bb5c6e47ed9bfbf57b9c3e6d68d3437ea..90b601cad3220365064a9936413ace6a06a25f4b:/cookbooks/planet/files/default/history_cgi/HEADER.cgi
diff --git a/cookbooks/planet/files/default/history_cgi/HEADER.cgi b/cookbooks/planet/files/default/history_cgi/HEADER.cgi
index 460acd319..4b64cfc6e 100755
--- a/cookbooks/planet/files/default/history_cgi/HEADER.cgi
+++ b/cookbooks/planet/files/default/history_cgi/HEADER.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
from time import time
from os import stat, environ
@@ -44,16 +44,17 @@ def nice_time(time):
return '%d months' % (time / 2592000.)
def file_info(file, name):
+ torrent_file = file + '.torrent'
size = nice_size(file)
hash = search(r'\w{32}', open(file+'.md5', 'r').read()).group(0)
date = nice_time(time() - stat(file).st_mtime)
- return '%(name)s
%(size)s, created %(date)s ago.
md5: %(hash)s.' % locals()
+ return '%(name)s (torrent)
%(size)s, created %(date)s ago.
md5: %(hash)s.' % locals()
planet_link = file_info('history-latest.osm.bz2', 'Latest Full History Planet XML File')
planet_pbf_link = file_info('../../pbf/full-history/history-latest.osm.pbf', 'Latest Full History Planet PBF File')
-print """
+print("""
If you find data within OpenStreetMap that you believe is an infringement of someone else's copyright, then please make contact with the OpenStreetMap Data Working Group.
-""" % locals() +""" % locals())