Make server storage the default.

Remove --server-storage argument.
This commit is contained in:
comfyanonymous 2024-01-11 17:21:40 -05:00
parent d4edd9bfa8
commit 53c8a99e6c
2 changed files with 2 additions and 6 deletions

View File

@ -94,7 +94,7 @@ class UserManager():
else:
user_dir = self.get_request_user_filepath(request, None, create_dir=False)
return web.json_response({
"storage": "server" if args.server_storage else "browser",
"storage": "server",
"migrated": os.path.exists(user_dir)
})

View File

@ -112,8 +112,7 @@ parser.add_argument("--windows-standalone-build", action="store_true", help="Win
parser.add_argument("--disable-metadata", action="store_true", help="Disable saving prompt metadata in files.")
parser.add_argument("--server-storage", action="store_true", help="Saves settings and other user configuration on the server instead of in browser storage.")
parser.add_argument("--multi-user", action="store_true", help="Enables per-user storage. If enabled, server-storage will be unconditionally enabled.")
parser.add_argument("--multi-user", action="store_true", help="Enables per-user storage.")
if comfy.options.args_parsing:
args = parser.parse_args()
@ -125,6 +124,3 @@ if args.windows_standalone_build:
if args.disable_auto_launch:
args.auto_launch = False
if args.multi_user:
args.server_storage = True