swap first and second in runtime in api
This commit is contained in:
parent
6011bd7812
commit
2c72ca0d5e
4
main.py
4
main.py
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user