SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
SciPost
SciPost
Commits
5734c712
Commit
5734c712
authored
3 years ago
by
Jean-Sébastien Caux
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into dev_JSC_20211026_new_homepage
parents
c63e0cdc
ea452294
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.mailmap
+2
-1
2 additions, 1 deletion
.mailmap
scipost_django/common/converters.py
+3
-3
3 additions, 3 deletions
scipost_django/common/converters.py
with
5 additions
and
4 deletions
.mailmap
+
2
−
1
View file @
5734c712
Jean-Sébastien Caux <git@jscaux.org> J.-S. Caux <J.S.Caux@uva.nl>
Jean-Sébastien Caux <git@jscaux.org> J.-S. Caux <J.S.Caux@uva.nl>
Jean-Sébastien Caux <git@jscaux.org> Jean-Sebastien Caux <J.S.Caux@uva.nl>
Jean-Sébastien Caux <git@jscaux.org> Jean-Sebastien Caux <jscaux@ABACUS.local>
Jean-Sébastien Caux <git@jscaux.org> Jean-Sebastien Caux <jscaux@ABACUS.local>
Jean-Sébastien Caux <git@jscaux.org> Jean-Sebastien Caux <jscaux@vpn-staff-146-50-69-84.vpn.uva.nl>
Jean-Sébastien Caux <git@jscaux.org> Jean-Sebastien Caux <jscaux@vpn-staff-146-50-69-84.vpn.uva.nl>
SciPost techsupport <techsupport@scipost.org>
SciPost techsupport <techsupport@scipost.org>
...
...
This diff is collapsed.
Click to expand it.
scipost_django/common/converters.py
+
3
−
3
View file @
5734c712
...
@@ -16,11 +16,11 @@ class FourDigitYearConverter:
...
@@ -16,11 +16,11 @@ class FourDigitYearConverter:
return
int
(
value
)
return
int
(
value
)
def
to_url
(
self
,
value
):
def
to_url
(
self
,
value
):
return
'
%04d
'
%
value
return
'
%04d
'
%
int
(
value
)
class
TwoDigitMonthConverter
:
class
TwoDigitMonthConverter
:
regex
=
'
(
0[1-9]
{1})|(
1[
1
-2]
{1})
'
regex
=
'
0[1-9]
|
1[
0
-2]
'
def
to_python
(
self
,
value
):
def
to_python
(
self
,
value
):
return
int
(
value
)
return
int
(
value
)
...
@@ -30,7 +30,7 @@ class TwoDigitMonthConverter:
...
@@ -30,7 +30,7 @@ class TwoDigitMonthConverter:
class
TwoDigitDayConverter
:
class
TwoDigitDayConverter
:
regex
=
'
([0-2]{1}[1
-9]
)
|3
0|31
'
regex
=
'
0[1-9]|[1-2][0
-9]|3
[0-1]
'
def
to_python
(
self
,
value
):
def
to_python
(
self
,
value
):
return
int
(
value
)
return
int
(
value
)
...
...
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