Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ositah
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LION Sonny
ositah
Commits
c4dd16a1
Commit
c4dd16a1
authored
2 years ago
by
b'Michel Jouvin
Browse files
Options
Downloads
Patches
Plain Diff
Formatting changes made by Black not related to last changes
parent
2e9bfd8f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ositah/utils/core.py
+1
-0
1 addition, 0 deletions
ositah/utils/core.py
ositah/utils/hito_db.py
+0
-11
0 additions, 11 deletions
ositah/utils/hito_db.py
with
1 addition
and
11 deletions
ositah/utils/core.py
+
1
−
0
View file @
c4dd16a1
# Module with utility functions
# Singleton decorator definition
def
singleton
(
cls
):
instances
=
{}
...
...
This diff is collapsed.
Click to expand it.
ositah/utils/hito_db.py
+
0
−
11
View file @
c4dd16a1
...
...
@@ -66,7 +66,6 @@ project_teams = db.Table(
class
Agent
(
db
.
Model
):
id
=
db
.
Column
(
db
.
String
,
primary_key
=
True
)
nom
=
db
.
Column
(
db
.
String
)
prenom
=
db
.
Column
(
db
.
String
)
...
...
@@ -96,7 +95,6 @@ class Agent(db.Model):
class
Carriere
(
db
.
Model
):
id
=
db
.
Column
(
db
.
String
,
primary_key
=
True
)
date_debut
=
db
.
Column
(
db
.
DateTime
)
date_fin
=
db
.
Column
(
db
.
DateTime
)
...
...
@@ -113,7 +111,6 @@ class Carriere(db.Model):
class
Team
(
db
.
Model
):
id
=
db
.
Column
(
db
.
String
,
primary_key
=
True
)
nom
=
db
.
Column
(
db
.
String
)
description
=
db
.
Column
(
db
.
String
)
...
...
@@ -128,7 +125,6 @@ class Team(db.Model):
class
Referentiel
(
db
.
Model
):
id
=
db
.
Column
(
db
.
Integer
,
primary_key
=
True
)
libelle
=
db
.
Column
(
db
.
String
)
ordre
=
db
.
Column
(
db
.
Integer
)
...
...
@@ -139,7 +135,6 @@ class Referentiel(db.Model):
class
Activite
(
db
.
Model
):
id
=
db
.
Column
(
db
.
String
,
primary_key
=
True
,
default
=
new_uuid
)
libelle
=
db
.
Column
(
db
.
String
)
description
=
db
.
Column
(
db
.
String
)
...
...
@@ -172,7 +167,6 @@ class Activite(db.Model):
class
Projet
(
db
.
Model
):
id
=
db
.
Column
(
db
.
String
,
primary_key
=
True
,
default
=
new_uuid
)
libelle
=
db
.
Column
(
db
.
String
)
description
=
db
.
Column
(
db
.
String
)
...
...
@@ -205,7 +199,6 @@ class Projet(db.Model):
class
ActiviteDetail
(
db
.
Model
):
id
=
db
.
Column
(
db
.
Integer
,
primary_key
=
True
)
activite_id
=
db
.
Column
(
db
.
String
,
db
.
ForeignKey
(
"
activite.id
"
))
projet_id
=
db
.
Column
(
db
.
String
,
db
.
ForeignKey
(
"
projet.id
"
))
...
...
@@ -234,14 +227,12 @@ class ActiviteDetail(db.Model):
class
OSITAHSession
(
db
.
Model
):
id
=
db
.
Column
(
db
.
String
(
36
),
primary_key
=
True
)
email
=
db
.
Column
(
db
.
String
(
255
),
nullable
=
False
)
last_use
=
db
.
Column
(
db
.
DateTime
,
nullable
=
False
)
class
OSITAHValidation
(
db
.
Model
):
id
=
db
.
Column
(
db
.
String
(
36
),
primary_key
=
True
,
default
=
new_uuid
)
validated
=
db
.
Column
(
db
.
Boolean
,
nullable
=
False
)
timestamp
=
db
.
Column
(
db
.
DateTime
,
nullable
=
False
)
...
...
@@ -258,7 +249,6 @@ class OSITAHValidation(db.Model):
class
OSITAHValidationPeriod
(
db
.
Model
):
id
=
db
.
Column
(
db
.
String
(
36
),
primary_key
=
True
,
default
=
new_uuid
)
name
=
db
.
Column
(
db
.
String
(
255
),
unique
=
True
,
nullable
=
False
)
start_date
=
db
.
Column
(
db
.
DateTime
,
nullable
=
False
)
...
...
@@ -267,7 +257,6 @@ class OSITAHValidationPeriod(db.Model):
class
OSITAHProjectDeclaration
(
db
.
Model
):
id
=
db
.
Column
(
db
.
String
(
36
),
primary_key
=
True
,
default
=
new_uuid
)
projet
=
db
.
Column
(
db
.
String
(
255
),
nullable
=
False
)
masterprojet
=
db
.
Column
(
db
.
String
(
255
),
nullable
=
False
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment