fix bug config should not set upper() case which ignored configs

This commit is contained in:
HappyZ 2023-05-05 00:22:06 -07:00
parent db6d3a94a7
commit bc3060085b
3 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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: