swap first and second in runtime in api

This commit is contained in:
Maciej Czajka 2023-02-02 17:15:07 +01:00
parent 6011bd7812
commit 2c72ca0d5e

View File

@ -45,7 +45,7 @@ def inference(first: pandas.core.series.Series,
year_diff = int(first['release_year'] - second['release_year'])
FS.set_variable('RELEASE_YEAR', year_diff)
runtime_diff = int(first['runtime'] - second['runtime'])
runtime_diff = int(second['runtime'] - first['runtime'])
FS.set_variable('RUNTIME', runtime_diff)
if not (np.isnan(first['seasons']) or np.isnan(second['seasons'])):
@ -173,4 +173,4 @@ async def recs(production_id: str,
scores.remove(production_id)
return {
'id': scores
}
}