Commit 44b83aad authored by Robert Czechowski's avatar Robert Czechowski
Browse files

License headers added to generated files

parent 31d73bc3
Pipeline #676 passed with stages
in 15 minutes and 42 seconds
...@@ -11,6 +11,20 @@ ...@@ -11,6 +11,20 @@
* * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* medal *\
* Copyright (C) 2020 Bundesweite Informatikwettbewerbe *
* *
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero *
* General Public License as published by the Free Software Foundation, either version 3 of the License, or (at *
* your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the *
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public *
* License for more details. *
* *
* You should have received a copy of the GNU Affero General Public License along with this program. If not, see *
\* <http://www.gnu.org/licenses/>. */
#![cfg(feature = "postgres")] #![cfg(feature = "postgres")]
extern crate postgres; extern crate postgres;
...@@ -94,6 +108,20 @@ impl MedalObject<Connection> for Grade { ...@@ -94,6 +108,20 @@ impl MedalObject<Connection> for Grade {
conn.execute(query, &[&self.taskgroup, &self.user, &self.grade, &self.validated]).unwrap(); conn.execute(query, &[&self.taskgroup, &self.user, &self.grade, &self.validated]).unwrap();
} }
} }
/* medal *\
* Copyright (C) 2020 Bundesweite Informatikwettbewerbe *
* *
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero *
* General Public License as published by the Free Software Foundation, either version 3 of the License, or (at *
* your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the *
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public *
* License for more details. *
* *
* You should have received a copy of the GNU Affero General Public License along with this program. If not, see *
\* <http://www.gnu.org/licenses/>. */
impl MedalObject<Connection> for Participation { impl MedalObject<Connection> for Participation {
fn save(&mut self, conn: &Connection) { fn save(&mut self, conn: &Connection) {
let query = "INSERT INTO participation (contest, session, start_date) let query = "INSERT INTO participation (contest, session, start_date)
......
...@@ -11,6 +11,20 @@ ...@@ -11,6 +11,20 @@
* * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* medal *\
* Copyright (C) 2020 Bundesweite Informatikwettbewerbe *
* *
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero *
* General Public License as published by the Free Software Foundation, either version 3 of the License, or (at *
* your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the *
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public *
* License for more details. *
* *
* You should have received a copy of the GNU Affero General Public License along with this program. If not, see *
\* <http://www.gnu.org/licenses/>. */
#![cfg(feature = "rusqlite")] #![cfg(feature = "rusqlite")]
extern crate rusqlite; extern crate rusqlite;
...@@ -94,6 +108,20 @@ impl MedalObject<Connection> for Grade { ...@@ -94,6 +108,20 @@ impl MedalObject<Connection> for Grade {
conn.execute(query, &[&self.taskgroup, &self.user, &self.grade, &self.validated]).unwrap(); conn.execute(query, &[&self.taskgroup, &self.user, &self.grade, &self.validated]).unwrap();
} }
} }
/* medal *\
* Copyright (C) 2020 Bundesweite Informatikwettbewerbe *
* *
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero *
* General Public License as published by the Free Software Foundation, either version 3 of the License, or (at *
* your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the *
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public *
* License for more details. *
* *
* You should have received a copy of the GNU Affero General Public License along with this program. If not, see *
\* <http://www.gnu.org/licenses/>. */
impl MedalObject<Connection> for Participation { impl MedalObject<Connection> for Participation {
fn save(&mut self, conn: &Connection) { fn save(&mut self, conn: &Connection) {
let query = "INSERT INTO participation (contest, session, start_date) let query = "INSERT INTO participation (contest, session, start_date)
......
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