Skip to content

Commit

Permalink
PM #12 - Fix sending of execution contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
js-dieu committed Apr 17, 2020
1 parent 34cd11e commit 14b2ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_monitor/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_env_id(self, env):
row = self.__db.query('SELECT ENV_H FROM EXECUTION_CONTEXTS WHERE ENV_H= ?', (env.hash(),))
db = row[0] if row else None
if self.__remote:
r = requests.get(f'{self.__remote}/contexts', params=dict(environ_hash=env.hash()))
r = requests.get(f'{self.__remote}/contexts/{env.hash()}')
remote = None
if r.status_code == 200:
remote = json.loads(r.text)
Expand Down

0 comments on commit 14b2ee6

Please sign in to comment.