Skip to content

Commit f0756ac

Browse files
committed
fix Script add
1 parent d7c910d commit f0756ac

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/viur_cli/scriptor/cli.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def configure(url: str, username: str, working_dir: str):
4343
Manage configuration settings.
4444
"""
4545

46-
4746
if url:
4847
scriptor_config["base_url"] = url
4948

@@ -99,10 +98,6 @@ def check_session(ctx: click.Context):
9998
click.echo("Invalid session, please run `viur script setup` again.")
10099
ctx.invoke(setup)
101100
ctx.close()
102-
#FIXME We need this ?
103-
# Update modules with cookies
104-
modules = get_modules()
105-
# modules.request.cookies = cookiejar_from_dict(scriptor_config.get("cookies", {}))
106101

107102

108103
@script.command()
@@ -114,7 +109,6 @@ def pull(ctx: click.Context, force: bool):
114109
"""
115110
check_session(ctx)
116111

117-
118112
async def main():
119113
# In the new API, we don't need to call structure
120114
modules = get_modules()
@@ -288,7 +282,7 @@ async def main(file_path: str = None):
288282
f.write(args["script"])
289283

290284
click.echo(f"Push {_real_file}")
291-
await tree.add(_type, args)
285+
await tree.add(args, skel_type=_type)
292286

293287
if watch:
294288
print("Watching...")

0 commit comments

Comments
 (0)