Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
digital-edition-editor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
gutzkow
digital-edition-editor
Commits
f58d2b9c
Commit
f58d2b9c
authored
5 years ago
by
Mark Hall
Browse files
Options
Downloads
Patches
Plain Diff
Update changes loading
parent
bf87cbfd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#5314
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
digital_edition_editor/settings.py
+2
-2
2 additions, 2 deletions
digital_edition_editor/settings.py
with
2 additions
and
2 deletions
digital_edition_editor/settings.py
+
2
−
2
View file @
f58d2b9c
...
...
@@ -148,7 +148,7 @@ with open('CHANGES.md') as in_f:
if
match
is
None
:
match
=
re
.
match
(
'
## (Development) \(()\)
'
,
line
.
strip
())
if
match
and
last_version
!=
match
.
group
(
1
):
if
len
(
changes
)
>
0
:
if
len
(
changes
)
>
0
and
(
DEBUG
or
last_version
!=
'
Development
'
)
:
HISTORY
.
append
((
last_version
,
last_date
,
tuple
(
changes
)))
changes
=
[]
last_version
=
match
.
group
(
1
)
...
...
@@ -157,7 +157,7 @@ with open('CHANGES.md') as in_f:
match
=
re
.
match
(
'
\\
*
\\
*
\\
*([a-zA-Z]+)\*\*:\s+((?:\w|\s|[-,.:;
"
\'
])+)
'
,
line
.
strip
())
if
match
:
changes
.
append
((
match
.
group
(
1
).
lower
(),
_icon_mappings
[
match
.
group
(
1
).
lower
()],
match
.
group
(
2
)))
if
last_version
and
len
(
changes
)
>
0
:
if
last_version
and
len
(
changes
)
>
0
and
(
DEBUG
or
last_version
!=
'
Development
'
)
:
HISTORY
.
append
((
last_version
,
last_date
,
tuple
(
changes
)))
HISTORY
=
tuple
(
HISTORY
)
if
HISTORY
:
...
...
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