Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
bb9d1620
Commit
bb9d1620
authored
Jan 08, 2021
by
LE GAC Renaud
Browse files
Update RecordHepConf to fix a typo in conference_dates
parent
8b502fef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modules/store_tools/recordhepconf.py
modules/store_tools/recordhepconf.py
+1
-1
tests/basis/test_07_RecordHepConf.py
tests/basis/test_07_RecordHepConf.py
+1
-1
No files found.
modules/store_tools/recordhepconf.py
View file @
bb9d1620
...
@@ -91,7 +91,7 @@ class RecordHepConf(RecordHepPubli):
...
@@ -91,7 +91,7 @@ class RecordHepConf(RecordHepPubli):
ds
=
datetime
.
strptime
(
opening
,
"%Y-%m-%d"
)
ds
=
datetime
.
strptime
(
opening
,
"%Y-%m-%d"
)
de
=
datetime
.
strptime
(
closing
,
"%Y-%m-%d"
)
de
=
datetime
.
strptime
(
closing
,
"%Y-%m-%d"
)
val
=
de
.
strftime
(
"%d %
B
%Y"
)
val
=
de
.
strftime
(
"%d %
b
%Y"
)
if
ds
.
month
==
de
.
month
:
if
ds
.
month
==
de
.
month
:
val
=
f
"
{
ds
.
day
}
-
{
val
}
"
val
=
f
"
{
ds
.
day
}
-
{
val
}
"
else
:
else
:
...
...
tests/basis/test_07_RecordHepConf.py
View file @
bb9d1620
...
@@ -43,7 +43,7 @@ def test_conference_country_ins_07004(record):
...
@@ -43,7 +43,7 @@ def test_conference_country_ins_07004(record):
def
test_conference_dates_ins_07006
(
record
):
def
test_conference_dates_ins_07006
(
record
):
assert
record
.
conference_dates
()
==
"6-11 Dec
ember
2010"
assert
record
.
conference_dates
()
==
"6-11 Dec 2010"
def
test_conference_id_ins_07008
(
record
):
def
test_conference_id_ins_07008
(
record
):
...
...
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