summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-07-18 15:49:01 -0500
committerOmar Roth <omarroth@hotmail.com>2018-07-18 15:49:01 -0500
commitabab7fca87ee053249e111383e1b591e6f04dfe5 (patch)
treec4ed6182d341b6d9ea66f8975db24de62a4dd487
parenteaf8854f966d826c1287141412f145efdaefa359 (diff)
downloadinvidious-abab7fca87ee053249e111383e1b591e6f04dfe5.tar.gz
invidious-abab7fca87ee053249e111383e1b591e6f04dfe5.tar.bz2
invidious-abab7fca87ee053249e111383e1b591e6f04dfe5.zip
Fix preferences for existing users
-rw-r--r--src/invidious/helpers.cr1
1 files changed, 1 insertions, 0 deletions
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}) \