commit 785a028f78c1589060982c14cf74df3b000b2721
parent 553e84903df7926c86f16a033ed9a10c26b72645
Author: parazyd <parazyd@dyne.org>
Date: Wed, 23 Jan 2019 16:17:06 +0100
Fix list index bug in utils.py.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils.py b/utils.py
@@ -182,7 +182,7 @@ def fill_user_dict(row):
'password': row[3],
'cap': row[4],
'first_seen': row[5],
- 'is_active': row[7],
+ 'is_active': row[6],
}
@@ -260,7 +260,7 @@ def make_profile(name, email):
welcome_msg = "Welcome to Diaspora Diaries! Enjoy your stay :)"
with open(join(msgpath, initial_user['email']), 'w') as msgfile:
json.dump([{'from': 'Diaspora Diaries', 'message': welcome_msg,
- 'time': int(time())}], msgfile)
+ 'time': int(time())}], msgfile, 'unread': 1)
return plain_pw