Skip to content
Snippets Groups Projects
Commit f9f9bb3f authored by Dichi13's avatar Dichi13
Browse files

cleaned up some unused variables

parent 08cec778
1 merge request!5Develop
Pipeline #14455 canceled with stage
...@@ -41,7 +41,6 @@ def get_page(): ...@@ -41,7 +41,6 @@ def get_page():
if return_admin: if return_admin:
resp["admin_subdata"] = [] resp["admin_subdata"] = []
i = 0
for x in subdata: for x in subdata:
admins = db.User.objects(page_list__in = [x.id]) admins = db.User.objects(page_list__in = [x.id])
if len(admins) > 0: if len(admins) > 0:
...@@ -52,7 +51,6 @@ def get_page(): ...@@ -52,7 +51,6 @@ def get_page():
resp["admin_subdata"].append(admin) resp["admin_subdata"].append(admin)
else: else:
resp["admin_subdata"].append(None) resp["admin_subdata"].append(None)
i += 1
if return_admin: if return_admin:
admins = db.User.objects(page_list__in = [vdata.id]) admins = db.User.objects(page_list__in = [vdata.id])
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment