Commit 50efce17 authored by Stephane Crozat's avatar Stephane Crozat
Browse files

Manual settings : admin=>2020, functions=>H

parent ad146c12
...@@ -9,3 +9,10 @@ git@gitlab.utc.fr:crozatst/apisub.git ...@@ -9,3 +9,10 @@ git@gitlab.utc.fr:crozatst/apisub.git
### `TABLE config` ### `TABLE config`
Set `closed` to `TRUE` to disable subscription (and unsubscription). Set `closed` to `TRUE` to disable subscription (and unsubscription).
Update openbegin et openend
### lib/admin.php
change active semester et active Year
### sql/apisub_functions.sql
change function semester (workaround)
...@@ -13,11 +13,11 @@ class Admin { ...@@ -13,11 +13,11 @@ class Admin {
} }
public function activeSemester() { public function activeSemester() {
return 'E'; return 'H';
} }
public function activeYear() { public function activeYear() {
return 2019; return 2020;
} }
} }
...@@ -78,6 +78,6 @@ $$ LANGUAGE PLPGSQL; ...@@ -78,6 +78,6 @@ $$ LANGUAGE PLPGSQL;
/** TODO **/ /** TODO **/
CREATE OR REPLACE FUNCTION semester(DATE) RETURNS CHAR(1) AS $$ CREATE OR REPLACE FUNCTION semester(DATE) RETURNS CHAR(1) AS $$
BEGIN BEGIN
RETURN 'E'; RETURN 'H';
END; END;
$$ LANGUAGE PLPGSQL; $$ LANGUAGE PLPGSQL;
...@@ -31,3 +31,4 @@ rsync -va cathtml/* wapint@stargate.utc.fr:/volgen/user1x/users/wapint/public_ht ...@@ -31,3 +31,4 @@ rsync -va cathtml/* wapint@stargate.utc.fr:/volgen/user1x/users/wapint/public_ht
su postgres su postgres
pg_dump apisub -f /home/stc/apidump/apisub20181123.sql pg_dump apisub -f /home/stc/apidump/apisub20181123.sql
scp stc@pic.crzt.fr /home/stc/apidump/apisub20181123.sql .
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment