Skip to content

Commit

Permalink
fix: modify config table sql query conditions
Browse files Browse the repository at this point in the history
Signed-off-by: liangjunhao <[email protected]>
  • Loading branch information
paterleng committed Jul 2, 2024
1 parent d9549d3 commit b26ce55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/services/config_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def add_config(self, key, default_value, type, enable=True, desc=""):

def get_config_by_key(self, key):
try:
return ConsoleSysConfig.objects.get(key=key, enterprise_id=self.enterprise_id)
return ConsoleSysConfig.objects.get(key=key)
except ConsoleSysConfig.DoesNotExist:
return None

Expand Down

0 comments on commit b26ce55

Please sign in to comment.