README.me update + minor changes

This commit is contained in:
Sam
2018-05-30 17:48:58 +02:00
parent 7d410956b5
commit 1c206de590
9 changed files with 25 additions and 19 deletions

View File

@ -262,6 +262,10 @@ def generate_map(map_filepath, map_data):
def get_map_hash(map_filepath):
"""
md5 hash is used as id instead of activity id, to retrieve map image
(maps are sensitive data)
"""
md5 = hashlib.md5()
with open(map_filepath, 'rb') as f:
for chunk in iter(lambda: f.read(128 * md5.block_size), b''):