Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
irul
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 07a9c8c8
authored
Nov 28, 2024
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan get_urls
1 parent
df92e247
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
opensipkd/base/__init__.py
opensipkd/base/__init__.py
View file @
07a9c8c
...
...
@@ -2,10 +2,10 @@ import locale
import
logging
import
re
# from opensipkd.tools.captcha import get_captcha_url
from
.routes
import
routes
# from opensipkd.tools.captcha import get_captcha_url
try
:
from
urllib
import
(
urlencode
,
quote
,
quote_plus
,
)
except
ImportError
:
...
...
@@ -417,8 +417,11 @@ def get_urls(url):
if
home
:
urls
=
url
.
split
(
":"
)
homes
=
home
.
split
(
":"
)
if
urls
[
0
]
!=
homes
[
0
]:
return
":"
.
join
([
homes
[
0
],
":"
.
join
(
urls
[
1
:])])
if
len
(
urls
)
>
0
:
if
urls
[
0
]
!=
homes
[
0
]:
return
":"
.
join
([
homes
[
0
],
":"
.
join
(
urls
[
1
:])])
else
:
return
home
+
url
return
url
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment