Robert Neumann 2 лет назад
Родитель
Сommit
8265a85434
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      pynecone/pc.py
  2. 2 2
      pynecone/state.py

+ 2 - 2
pynecone/pc.py

@@ -141,10 +141,10 @@ def deploy(dry_run: bool = typer.Option(False, help="Whether to run a dry run.")
 
     # Upload the frontend and backend.
     with open(constants.FRONTEND_ZIP, "rb") as f:
-        response = httpx.put(frontend, data=f)  # type: ignore
+        httpx.put(frontend, data=f)  # type: ignore
 
     with open(constants.BACKEND_ZIP, "rb") as f:
-        response = httpx.put(backend, data=f)  # type: ignore
+        httpx.put(backend, data=f)  # type: ignore
 
 
 @cli.command()

+ 2 - 2
pynecone/state.py

@@ -620,8 +620,8 @@ class State(Base, ABC):
             k: v.dict(include_computed=include_computed, **kwargs)
             for k, v in self.substates.items()
         }
-        vars = {**base_vars, **computed_vars, **substate_vars}
-        return {k: vars[k] for k in sorted(vars)}
+        variables = {**base_vars, **computed_vars, **substate_vars}
+        return {k: variables[k] for k in sorted(variables)}
 
 
 class DefaultState(State):