mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Fix preferences for new users
This commit is contained in:
parent
44016a6779
commit
eaf8854f96
1 changed files with 1 additions and 0 deletions
|
@ -766,6 +766,7 @@ def get_user(sid, client, headers, db, refresh = true)
|
||||||
if refresh && Time.now - user.updated > 1.minute
|
if refresh && Time.now - user.updated > 1.minute
|
||||||
user = fetch_user(sid, client, headers, db)
|
user = fetch_user(sid, client, headers, db)
|
||||||
user_array = user.to_a
|
user_array = user.to_a
|
||||||
|
user_array[5] = user_array[5].to_json
|
||||||
args = arg_array(user_array)
|
args = arg_array(user_array)
|
||||||
|
|
||||||
db.exec("INSERT INTO users VALUES (#{args}) \
|
db.exec("INSERT INTO users VALUES (#{args}) \
|
||||||
|
|
Loading…
Reference in a new issue