summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-02-03 20:20:31 -0500
committerluxagraf <sng@luxagraf.net>2016-02-03 20:20:31 -0500
commitf3514583270b467b16126f718d21f688532b68d2 (patch)
treeaa9936d884bb399400f3414dc6c3b8af6643d524 /app
parent44f2a730532036b06e701447961fa19575edcc5a (diff)
fixed a bug in builder
Diffstat (limited to 'app')
-rw-r--r--app/builder/base.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/builder/base.py b/app/builder/base.py
index a26a857..6dd32e2 100644
--- a/app/builder/base.py
+++ b/app/builder/base.py
@@ -315,10 +315,9 @@ class BuildProjects(Build):
def get_projects(self):
all_proj = []
- projects = apps.get_model('projects', 'Project').objects.get(pk=2)
- for proj in projects:
- row = {'slug': proj.slug, 'name': proj.model_name}
- all_proj.append(row)
+ proj = apps.get_model('projects', 'Project').objects.get(pk=2)
+ row = {'slug': proj.slug, 'name': proj.model_name}
+ all_proj.append(row)
return all_proj
def build_project_archive(self):