mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-03-09 20:01:18 +00:00
py-i2phosts-builder: bugfix: add newline after each record
Since 2858ba6084d33f54b038a74bf1e1c4722e7d228a base64 hashes appearing in DB without newlines, so fix builder behavior.
This commit is contained in:
parent
47ca562e32
commit
16b875177f
@ -17,5 +17,5 @@ f = open(hostsfile, 'w')
|
||||
# select name and hash for all activated hosts
|
||||
l = i2phost.objects.filter(activated=True).values('name', 'b64hash')
|
||||
for entry in l:
|
||||
f.write(entry['name'] + '=' + entry['b64hash'])
|
||||
f.write(entry['name'] + '=' + entry['b64hash'] + '\n')
|
||||
f.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user