def make_commit(self, auth_id="x:no", hash=None, timestamp=None, project=None, **kwargs): if hash is None: hash = str(uuid.uuid4()) if timestamp is None: timestamp = timezone.now() commit = kwargs.copy() commit.update({"hash": hash, "timestamp": timestamp}) return Commit.create_by_auth_id(auth_id, [commit], project=project)
def make_commit(self, auth_id='x:no', hash=None, timestamp=None, project=None, **kwargs): if hash is None: hash = str(uuid.uuid4()) if timestamp is None: timestamp = timezone.now() commit = kwargs.copy() commit.update({'hash': hash, 'timestamp': timestamp}) return Commit.create_by_auth_id(auth_id, [commit], project=project)