mirror of
				https://github.com/open-webui/open-webui
				synced 2025-06-26 18:26:48 +00:00 
			
		
		
		
	use unquote_user in peewee 3.17.10
This commit is contained in:
		
							parent
							
								
									4e4b5ab83b
								
							
						
					
					
						commit
						12896fb728
					
				@ -43,7 +43,7 @@ class ReconnectingPostgresqlDatabase(CustomReconnectMixin, PostgresqlDatabase):
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def register_connection(db_url):
 | 
			
		||||
    db = connect(db_url, unquote_password=True)
 | 
			
		||||
    db = connect(db_url, unquote_user=True, unquote_password=True)
 | 
			
		||||
    if isinstance(db, PostgresqlDatabase):
 | 
			
		||||
        # Enable autoconnect for SQLite databases, managed by Peewee
 | 
			
		||||
        db.autoconnect = True
 | 
			
		||||
@ -51,7 +51,7 @@ def register_connection(db_url):
 | 
			
		||||
        log.info("Connected to PostgreSQL database")
 | 
			
		||||
 | 
			
		||||
        # Get the connection details
 | 
			
		||||
        connection = parse(db_url, unquote_password=True)
 | 
			
		||||
        connection = parse(db_url, unquote_user=True, unquote_password=True)
 | 
			
		||||
 | 
			
		||||
        # Use our custom database class that supports reconnection
 | 
			
		||||
        db = ReconnectingPostgresqlDatabase(**connection)
 | 
			
		||||
 | 
			
		||||
@ -15,7 +15,7 @@ aiofiles
 | 
			
		||||
 | 
			
		||||
sqlalchemy==2.0.38
 | 
			
		||||
alembic==1.14.0
 | 
			
		||||
peewee==3.17.9
 | 
			
		||||
peewee==3.18.1
 | 
			
		||||
peewee-migrate==1.12.2
 | 
			
		||||
psycopg2-binary==2.9.9
 | 
			
		||||
pgvector==0.4.0
 | 
			
		||||
 | 
			
		||||
@ -23,7 +23,7 @@ dependencies = [
 | 
			
		||||
 | 
			
		||||
    "sqlalchemy==2.0.38",
 | 
			
		||||
    "alembic==1.14.0",
 | 
			
		||||
    "peewee==3.17.9",
 | 
			
		||||
    "peewee==3.18.1",
 | 
			
		||||
    "peewee-migrate==1.12.2",
 | 
			
		||||
    "psycopg2-binary==2.9.9",
 | 
			
		||||
    "pgvector==0.4.0",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user