perbaikan petik

1 parent 4ec5fffb
...@@ -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:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!