Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GarganTexternal tools
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anne-Laure Thomas Derepas
GarganTexternal tools
Commits
a8323c73
Commit
a8323c73
authored
Sep 11, 2023
by
Loïc Chapron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix istex
parent
7ed63155
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
Istex_To_GarganText.py
Streamlit/pages/Istex_To_GarganText.py
+1
-3
No files found.
Streamlit/pages/Istex_To_GarganText.py
View file @
a8323c73
...
@@ -5,7 +5,7 @@ Loïc Chapron
...
@@ -5,7 +5,7 @@ Loïc Chapron
import
json
import
json
import
pandas
as
pd
import
pandas
as
pd
import
datetime
from
datetime
import
datetime
import
zipfile
import
zipfile
import
streamlit
as
st
import
streamlit
as
st
import
src.basic
as
tmp
import
src.basic
as
tmp
...
@@ -60,8 +60,6 @@ def read_zip(zip_file):
...
@@ -60,8 +60,6 @@ def read_zip(zip_file):
temp
[
"publication_year"
]
=
article
[
"publicationDate"
][
0
]
temp
[
"publication_year"
]
=
article
[
"publicationDate"
][
0
]
except
:
except
:
temp
[
"publication_year"
]
=
datetime
.
date
.
today
()
.
year
temp
[
"publication_year"
]
=
datetime
.
date
.
today
()
.
year
temp
[
"publication_year"
]
=
article
.
get
(
"publicationDate"
,
datetime
.
date
.
today
()
.
year
)[
0
]
temp
[
"publication_month"
]
=
1
temp
[
"publication_month"
]
=
1
temp
[
"publication_day"
]
=
1
temp
[
"publication_day"
]
=
1
...
...
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