@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user