Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
TO
Maják
Commits
cad76df6
Commit
cad76df6
authored
3 years ago
by
Ondrej Rehounek
Browse files
Options
Downloads
Patches
Plain Diff
Add article title
parent
8b065d61
Branches
Branches containing commit
No related tags found
2 merge requests
!450
Release
,
!449
Bugfix import praha 11
Pipeline
#7479
passed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shared/jekyll_import.py
+2
-2
2 additions, 2 deletions
shared/jekyll_import.py
with
2 additions
and
2 deletions
shared/jekyll_import.py
+
2
−
2
View file @
cad76df6
...
@@ -170,7 +170,7 @@ def get_or_create_image(
...
@@ -170,7 +170,7 @@ def get_or_create_image(
msg
=
"
Nedohledán obrázek při importu článků - ani na disku, ani na URL
"
msg
=
"
Nedohledán obrázek při importu článků - ani na disku, ani na URL
"
log_message
=
"
{}: cesta {}, URL {}
\n
"
.
format
(
msg
,
file_path
,
img_url
)
log_message
=
"
{}: cesta {}, URL {}
\n
"
.
format
(
msg
,
file_path
,
img_url
)
logger
.
warning
(
logger
.
warning
(
msg
,
log_message
,
extra
=
{
extra
=
{
"
file_path
"
:
file_path
,
"
file_path
"
:
file_path
,
"
img_name
"
:
img_name
,
"
img_name
"
:
img_name
,
...
@@ -479,7 +479,7 @@ class JekyllArticleImporter:
...
@@ -479,7 +479,7 @@ class JekyllArticleImporter:
self
.
path
,
meta
[
"
image
"
],
self
.
collection
,
self
.
repo_name
self
.
path
,
meta
[
"
image
"
],
self
.
collection
,
self
.
repo_name
)
)
if
log_message
:
if
log_message
:
self
.
page_log
+=
log_message
self
.
page_log
+=
"
{}: {}
"
.
format
(
article
.
title
,
log_message
)
if
self
.
dry_run
:
if
self
.
dry_run
:
return
article
return
article
...
...
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