Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pad-Initiator
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Logistik
pad-Initiator
Commits
311e82ba
Commit
311e82ba
authored
3 months ago
by
c-tim
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix-dedeuplicateFiles' into 'main'
fix: Dedeuplicate files See merge request
!10
parents
f80da0ea
903b9523
No related branches found
Branches containing commit
No related tags found
1 merge request
!10
fix: Dedeuplicate files
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pad_initiator.py
+8
-2
8 additions, 2 deletions
pad_initiator.py
with
8 additions
and
2 deletions
pad_initiator.py
+
8
−
2
View file @
311e82ba
#!/usr/bin/env python3
from
typing
import
List
,
Dict
,
Optional
,
Tuple
from
typing
import
List
,
Dict
,
Optional
,
Tuple
,
Iterable
from
jinja2
import
Template
,
StrictUndefined
...
...
@@ -171,7 +171,13 @@ def main():
humanreadablelinks
[
parts
[
0
].
strip
()]
=
parts
[
1
].
strip
()
line
=
f
.
readline
()
result
=
initPads
(
args
.
files
,
args
.
outdir
,
args
.
server
,
args
.
connectsid
,
humanreadablelinks
)
files
:
Iterable
[
str
]
=
args
.
files
seen
=
set
()
files
=
[
file
for
file
in
files
if
not
(
file
in
seen
or
seen
.
add
(
file
))]
result
=
initPads
(
files
,
args
.
outdir
,
args
.
server
,
args
.
connectsid
,
humanreadablelinks
)
for
file_name
,
link
in
result
.
items
():
print
(
"
Created pad for {}. It has the link {}
"
.
format
(
file_name
,
link
))
...
...
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