Skip to content

Commit

Permalink
Returning PID instead of int id
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeXydas committed May 16, 2023
1 parent 209f0f7 commit bcfd518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbs/collaborative_rs/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_service_pid_from_id(self, service_id: int) -> str:
if ret_val is None:
raise IdNotFound(f"Could not find the service id {service_id}.")

return ret_val['_id']
return ret_val['pid']

def get_number_of_recommendations_daily(self, service_ids):
result = self.mongo_connector.get_db()["recommendation"].aggregate([
Expand Down

0 comments on commit bcfd518

Please sign in to comment.