Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
parlapi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
David Guillot
parlapi
Commits
050b69c4
Commit
050b69c4
authored
Apr 15, 2017
by
Nicolas Joyard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modif notice_numero => Unicode
parent
8823ccab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
migrations/versions/55c1e64eaf9f_.py
migrations/versions/55c1e64eaf9f_.py
+1
-1
parlapi/jobs/an_dossiers.py
parlapi/jobs/an_dossiers.py
+1
-1
parlapi/models.py
parlapi/models.py
+1
-1
No files found.
migrations/versions/55c1e64eaf9f_.py
View file @
050b69c4
...
...
@@ -18,7 +18,7 @@ depends_on = None
def
upgrade
():
# ### commands auto generated by Alembic - please adjust! ###
op
.
add_column
(
'documents'
,
sa
.
Column
(
'notice_numero'
,
sa
.
String
(
10
),
nullable
=
True
))
op
.
add_column
(
'documents'
,
sa
.
Column
(
'notice_numero'
,
sa
.
Unicode
(
),
nullable
=
True
))
conn
=
op
.
get_bind
()
conn
.
execute
(
"""
CREATE OR REPLACE FUNCTION public.documents_search_vector_update()
...
...
parlapi/jobs/an_dossiers.py
View file @
050b69c4
...
...
@@ -53,7 +53,7 @@ class ImportDossiersJob(BaseANJob):
'divisions'
:
[],
'dossier'
:
None
,
'legislature'
:
None
,
'notice_numero'
:
str
(
notice
[
'numNotice'
])
,
'notice_numero'
:
notice
[
'numNotice'
]
,
'organes'
:
[],
'soustype_code'
:
None
,
'soustype_libelle'
:
None
,
...
...
parlapi/models.py
View file @
050b69c4
...
...
@@ -246,7 +246,7 @@ class Document(db.Model):
date_publication
=
db
.
Column
(
db
.
Date
)
date_publication_web
=
db
.
Column
(
db
.
Date
)
notice_numero
=
db
.
Column
(
db
.
String
(
10
)
)
notice_numero
=
db
.
Column
(
db
.
Unicode
)
titre
=
db
.
Column
(
db
.
Unicode
)
denomination_structurelle
=
db
.
Column
(
db
.
Unicode
)
type_code
=
db
.
Column
(
db
.
Unicode
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment