fix bug config should not set upper() case which ignored configs
This commit is contained in:
parent
db6d3a94a7
commit
bc3060085b
|
|
@ -79,7 +79,7 @@ def show_users(c, username="", details=False):
|
|||
count = c.fetchone()[0]
|
||||
print(f"Username: {user[0]}, API Key: {user[1]}, Number of jobs: {count}")
|
||||
if details:
|
||||
c.execute("SELECT * FROM history WHERE apikey=?", (user[1],))
|
||||
c.execute("SELECT uuid, created_at, type, status, width, height, steps FROM history WHERE apikey=?", (user[1],))
|
||||
result = c.fetchall()
|
||||
print(result)
|
||||
else:
|
||||
|
|
@ -92,7 +92,7 @@ def show_users(c, username="", details=False):
|
|||
count = c.fetchone()[0]
|
||||
print(f"Username: {user[0]}, API Key: {user[1]}, Number of jobs: {count}")
|
||||
if details:
|
||||
c.execute("SELECT * FROM history WHERE apikey=?", (user[1],))
|
||||
c.execute("SELECT uuid, created_at, type, status, width, height, steps FROM history WHERE apikey=?", (user[1],))
|
||||
result = c.fetchall()
|
||||
print(result)
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class Config:
|
|||
for key in config:
|
||||
if key not in OPTIONAL_KEYS:
|
||||
continue
|
||||
self.__config[key.upper()] = config[key]
|
||||
self.__config[key] = config[key]
|
||||
return self
|
||||
|
||||
def get_output_folder(self) -> str:
|
||||
|
|
|
|||
Loading…
Reference in New Issue