Skip to content

Commit da9222d

Browse files
committed
Formatted string mistake
Signed-off-by: SystemsPurge <[email protected]>
1 parent 47848dc commit da9222d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

villas/controller/components/simulator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _upload(self, filename):
113113
url = self.results['url']
114114
params={"url":url}
115115
if "token" in self.results:
116-
params["headers"] = {"Authorization":f"Bearer {self.model["token"]}"}
116+
params["headers"] = {"Authorization":f"Bearer {self.results['token']}"}
117117
with open(filename, 'rb') as f:
118118
params["body"] = f
119119
r = requests.put(url, body=f)
@@ -124,7 +124,7 @@ def _upload(self, filename):
124124
def _download(self, url):
125125
params = {"url":url,"stream":True}
126126
if "token" in self.model:
127-
params["headers"] = {"Authorization":f"Bearer {self.model["token"]}"}
127+
params["headers"] = {"Authorization":f"Bearer {self.model['token']}"}
128128
with requests.get(**params) as r:
129129
r.raise_for_status()
130130
with tempfile.NamedTemporaryFile(delete=False, suffix='.xml') as f:

0 commit comments

Comments
 (0)