Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c10073b7
authored
Mar 19, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan petik
1 parent
4ec5fffb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
opensipkd/base/__init__.py
opensipkd/base/__init__.py
View file @
c10073b
...
@@ -820,8 +820,11 @@ class BaseApp():
...
@@ -820,8 +820,11 @@ class BaseApp():
rows
=
csv
.
DictReader
(
f
)
rows
=
csv
.
DictReader
(
f
)
new_routes
=
[]
new_routes
=
[]
for
row
in
rows
:
for
row
in
rows
:
if
not
int
(
row
.
get
(
"status"
,
0
)):
status
=
row
.
get
(
"status"
,
0
)
if
not
status
:
continue
continue
status
=
int
(
status
)
row
[
"children"
]
=
[]
row
[
"children"
]
=
[]
parent_id
=
row
.
get
(
"parent_id"
)
or
row
.
get
(
"parent_id/routes.kode"
)
parent_id
=
row
.
get
(
"parent_id"
)
or
row
.
get
(
"parent_id/routes.kode"
)
if
parent_id
:
if
parent_id
:
...
...
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