Merged PR 257: Fix reward data type

Related work items: #2179
This commit is contained in:
Marek Wolan
2024-01-11 11:07:01 +00:00

View File

@@ -111,9 +111,9 @@ class DatabaseFileIntegrity(AbstractReward):
""" """
database_file_state = access_from_nested_dict(state, self.location_in_state) database_file_state = access_from_nested_dict(state, self.location_in_state)
health_status = database_file_state["health_status"] health_status = database_file_state["health_status"]
if health_status == "corrupted": if health_status == 3:
return -1 return -1
elif health_status == "good": elif health_status == 1:
return 1 return 1
else: else:
return 0 return 0