From abab7fca87ee053249e111383e1b591e6f04dfe5 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 18 Jul 2018 15:49:01 -0500 Subject: [PATCH] Fix preferences for existing users --- src/invidious/helpers.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/src/invidious/helpers.cr b/src/invidious/helpers.cr index 86c50e5c..5734aa3a 100644 --- a/src/invidious/helpers.cr +++ b/src/invidious/helpers.cr @@ -775,6 +775,7 @@ def get_user(sid, client, headers, db, refresh = true) else user = fetch_user(sid, client, headers, db) user_array = user.to_a + user_array[5] = user_array[5].to_json args = arg_array(user.to_a) db.exec("INSERT INTO users VALUES (#{args}) \