mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-19 15:25:51 +00:00
Fix none existing key migration, #build
This commit is contained in:
commit
9967015eba
@ -287,12 +287,6 @@ class Command(BaseCommand):
|
|||||||
new_conf.set_value("show_subed_only", subed_only)
|
new_conf.set_value("show_subed_only", subed_only)
|
||||||
redis.del_message(subed_only_key)
|
redis.del_message(subed_only_key)
|
||||||
|
|
||||||
sb_id_key = f"{user}:id_sb_id"
|
|
||||||
sb_id = redis.get_message(sb_id_key).get("status")
|
|
||||||
if sb_id is not None:
|
|
||||||
new_conf.set_value("sb_id_id", sb_id)
|
|
||||||
redis.del_message(sb_id_key)
|
|
||||||
|
|
||||||
for view in ["channel", "playlist", "home", "downloads"]:
|
for view in ["channel", "playlist", "home", "downloads"]:
|
||||||
view_key = f"{user}:view:{view}"
|
view_key = f"{user}:view:{view}"
|
||||||
view_style = redis.get_message(view_key).get("status")
|
view_style = redis.get_message(view_key).get("status")
|
||||||
|
Loading…
Reference in New Issue
Block a user