Browse Source

py-i2phosts-builder: bugfix: add newline after each record

Since 2858ba6084 base64 hashes appearing
in DB without newlines, so fix builder behavior.
pull/1/head
Hidden Z 14 years ago
parent
commit
16b875177f
  1. 2
      py-i2phosts-builder

2
py-i2phosts-builder

@ -17,5 +17,5 @@ f = open(hostsfile, 'w')
# select name and hash for all activated hosts # select name and hash for all activated hosts
l = i2phost.objects.filter(activated=True).values('name', 'b64hash') l = i2phost.objects.filter(activated=True).values('name', 'b64hash')
for entry in l: for entry in l:
f.write(entry['name'] + '=' + entry['b64hash']) f.write(entry['name'] + '=' + entry['b64hash'] + '\n')
f.close() f.close()

Loading…
Cancel
Save