Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
url-checker
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
url-checker
Commits
4dfd8e48
Commit
4dfd8e48
authored
Dec 04, 2019
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sqlite default value
parent
cdb3fbb9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
urlchecker_cli.py
urlchecker_cli.py
+1
-3
urlchecker_configuration.py
urlchecker_configuration.py
+2
-3
No files found.
urlchecker_cli.py
View file @
4dfd8e48
...
...
@@ -12,9 +12,7 @@ def runUrlChecker():
@
click
.
option
(
"--sqlite"
,
"-s"
,
help
=
"The path of the sqlite DB."
,
default
=
":memory:"
,
show_default
=
True
,
help
=
"The path of the sqlite DB. (default: :memory:)"
)
@
click
.
option
(
"--dns"
,
"-d"
,
help
=
"The IP of the DNS server."
)
@
click
.
option
(
"--url"
,
"-u"
,
help
=
"The url to check."
)
...
...
urlchecker_configuration.py
View file @
4dfd8e48
...
...
@@ -25,9 +25,8 @@ def createConfiguration(
config
.
read_dict
({
CONFIG_SECTION
:
mapping
})
# Required values
for
parameter
in
[
"SQLITE"
]:
if
parameter
not
in
config
[
CONFIG_SECTION
]:
raise
AttributeError
(
"Config %s not defined"
%
parameter
)
if
"SQLITE"
not
in
config
[
CONFIG_SECTION
]:
config
[
CONFIG_SECTION
][
"SQLITE"
]
=
":memory:"
return
config
[
CONFIG_SECTION
]
...
...
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