Skip to content

Commit

Permalink
Fix flask create project command
Browse files Browse the repository at this point in the history
  • Loading branch information
harminius committed Nov 7, 2024
1 parent c31320d commit 84bf66a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/mergin/sync/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from .. import db
from .models import Project, ProjectAccess, ProjectVersion
from .utils import split_project_path
from ..auth.models import User


def add_commands(app: Flask):
Expand All @@ -28,6 +29,7 @@ def project():
def create(name, namespace, user): # pylint: disable=W0612
"""Create blank project"""
workspace = current_app.ws_handler.get_by_name(namespace)
user = User.query.get(int(user))
project_params = dict(
creator=user,
name=name,
Expand Down

0 comments on commit 84bf66a

Please sign in to comment.