Fix project creation
This commit is contained in:
parent
b27e8e45ae
commit
67b5a79301
@ -66,10 +66,13 @@ sub get_users($;$)
|
|||||||
|
|
||||||
sub add_grades($;$)
|
sub add_grades($;$)
|
||||||
{
|
{
|
||||||
|
my $project_name = shift;
|
||||||
|
my $year = shift;
|
||||||
my %data;
|
my %data;
|
||||||
|
|
||||||
$data{project_name} = $project_name if (my $project_name = shift);
|
|
||||||
$data{year} = $year if (my $year = shift);
|
$data{project_name} = $project_name if ($project_name);
|
||||||
|
$data{year} = $year if ($year);
|
||||||
|
|
||||||
my $res = API::Base::send('ResultHandler', "projects/notes/add.xml", \%data);
|
my $res = API::Base::send('ResultHandler', "projects/notes/add.xml", \%data);
|
||||||
|
|
||||||
|
3
Makefile
3
Makefile
@ -1,5 +1,6 @@
|
|||||||
COPY=cp -v
|
COPY=cp -v
|
||||||
DEST=/usr/local/share/perl/`ls -1 /usr/lib/perl/ | tail -1`/
|
DEST=/usr/local/share/perl/`ls -1 /usr/lib/perl/ | tail -1`/
|
||||||
|
GITOLITE_DEST=/srv/git/repositories/.gitolite
|
||||||
MAKEDIR=mkdir
|
MAKEDIR=mkdir
|
||||||
PROVER=prove -f
|
PROVER=prove -f
|
||||||
RM=rm
|
RM=rm
|
||||||
@ -8,9 +9,11 @@ TESTDIR=t
|
|||||||
install:
|
install:
|
||||||
$(MAKEDIR) -p $(DEST)
|
$(MAKEDIR) -p $(DEST)
|
||||||
$(COPY) -r ACU/ $(DEST)
|
$(COPY) -r ACU/ $(DEST)
|
||||||
|
test -d $(GITOLITE_DEST)/src && $(COPY) hooks/* $(GITOLITE_DEST)/src
|
||||||
|
|
||||||
unstall:
|
unstall:
|
||||||
$(RM) -r $(DEST)/ACU/
|
$(RM) -r $(DEST)/ACU/
|
||||||
|
test -d $(GITOLITE_DEST)/src && $(RM) $(GITOLITE_DEST)/src/*
|
||||||
|
|
||||||
test:
|
test:
|
||||||
$(PROVER) $(TESTDIR)
|
$(PROVER) $(TESTDIR)
|
||||||
|
@ -4,7 +4,7 @@ use v5.10.1;
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use lib "../";
|
use lib "../../";
|
||||||
|
|
||||||
use ACU::API::Base;
|
use ACU::API::Base;
|
||||||
use ACU::API::Projects;
|
use ACU::API::Projects;
|
||||||
|
Reference in New Issue
Block a user