Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
DoroWolf committed Nov 27, 2024
1 parent 9eff8fc commit 839a43c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def get(cls,
q = q.lower()
value = None

if not table_name: # if table_name is not provided, search for the value in config.toml tables
if not _global:
if not table_name:
if not _global: # if table_name is not provided, search for the value in config.toml tables
for t in cls.values['config'].keys():
if isinstance(cls.values['config'][t], Table):
"""
Expand All @@ -130,9 +130,9 @@ def get(cls,
if t == q:
value = cls.values['config'][t]
break
else:
else: # search for the value in all tables
found = False
for t in cls.values.keys(): # search for the value in all tables
for t in cls.values.keys():
for tt in cls.values[t].keys():
if isinstance(cls.values[t][tt], Table):
value = cls.values[t][tt].get(q)
Expand Down

0 comments on commit 839a43c

Please sign in to comment.