tweaks
This commit is contained in:
@@ -35,7 +35,7 @@ def check_update(context: dg.SensorEvaluationContext) -> Iterator[dg.RunRequest]
|
||||
now_str = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
file = f"{now_str} stocks.html"
|
||||
context.log.info(f"Saving file: {file}")
|
||||
with open(f"/cache/{file}") as fp:
|
||||
with open(f"/cache/{file}", "w") as fp:
|
||||
fp.write(response.text)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user