summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-07-18 15:40:50 -0500
committerOmar Roth <omarroth@hotmail.com>2018-07-18 15:40:50 -0500
commiteaf8854f966d826c1287141412f145efdaefa359 (patch)
tree5834db51c0fcee551aa8bb82de304a98f224807e /src
parent44016a67791625bd93421ede564fee5a1ba3270b (diff)
downloadinvidious-eaf8854f966d826c1287141412f145efdaefa359.tar.gz
invidious-eaf8854f966d826c1287141412f145efdaefa359.tar.bz2
invidious-eaf8854f966d826c1287141412f145efdaefa359.zip
Fix preferences for new users
Diffstat (limited to 'src')
-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 d3f85b30..86c50e5c 100644
--- a/src/invidious/helpers.cr
+++ b/src/invidious/helpers.cr
@@ -766,6 +766,7 @@ def get_user(sid, client, headers, db, refresh = true)
if refresh && Time.now - user.updated > 1.minute
user = fetch_user(sid, client, headers, db)
user_array = user.to_a
+ user_array[5] = user_array[5].to_json
args = arg_array(user_array)
db.exec("INSERT INTO users VALUES (#{args}) \