diff --git a/hooks/submissions.pl b/hooks/submissions.pl index 058e393..8e422c7 100755 --- a/hooks/submissions.pl +++ b/hooks/submissions.pl @@ -23,6 +23,8 @@ my $id_project; my $repo_login; my @apping = qw(zinger_a zebard_w zanell_a yao_p vinois_a sraka_y soupam_j seck_a ngomsi_s morin_h milis_e menkar_m eusebe_r crief_a chhum_s boumra_n blemus_a bengan_l amasho_a); +my @salonD = qw(aniss_i bogalh_j boulea_b cloare_l elhach_h gabrie_j kaplan_p manuel_c palson_c pizzin_a wajntr_a); +my @salonS = qw(allio_a cadet_l digius_p drouin_n dubois_d dupuis_a langre_m lim_j); # First, extract information, from config then guess from repository adress if (my $tmp = `git config hooks.promo`) { chomp $tmp; $promo = $tmp; } @@ -78,9 +80,15 @@ if ($ref =~ m<^refs/tags/(.+)$>) $open = DateTime::Format::ISO8601->parse_datetime("2013-11-08T20:00:00"); $close = DateTime::Format::ISO8601->parse_datetime("2013-11-10T11:42:00"); } - - # TODO: check exceptions by login/group - $open = DateTime::Format::ISO8601->parse_datetime("2013-10-16T16:00:00") if ($repo_login eq "ikouna_l"); + if ($id_project eq "logomatig" && grep { $_ eq $repo_login } @salonS) + { + $open = DateTime::Format::ISO8601->parse_datetime("2013-11-24T09:00:00"); + $close = DateTime::Format::ISO8601->parse_datetime("2013-11-24T21:00:00"); + } + if ($id_project eq "logomatig" && grep { $_ eq $repo_login } @salonD) + { + $open = DateTime::Format::ISO8601->parse_datetime("2013-11-23T21:00:00"); + } say "Date courante : ", $glts->strftime("%d/%m/%Y %H:%M:%S");