Added projects. Part 3

This commit is contained in:
alexey
2025-02-25 23:57:44 +03:00
parent b72764d347
commit 8d10b21963
5 changed files with 52 additions and 16 deletions

View File

@@ -121,9 +121,9 @@ class DBase
def proj_create(proj_name, proj_descr)
@error = nil
data = Projects.where(projname: project_name).first
data = Projects.where(projname: proj_name).first
if data.nil?
id = Projects.insert(projname: project_name, descr: description, public: 1)
id = Projects.insert(projname: proj_name, descr: proj_descr, public: 1)
@last_id = id
else
@error = "Данный проект уже существует"