Download:
child 212:7bec8e3d6038
parent 210:6355db5628d6
211:de362234c827
Anton Shestakov <av6@dwimlabs.net>, Tue, 23 Aug 2016 01:33:56 +0800
handlers: reindent long queries

1 файлов изменено, 9 вставок(+), 9 удалений(-) [+]
candolint/handlers.py file | annotate | diff | comparison | revisions
--- a/candolint/handlers.py Tue Aug 23 00:58:23 2016 +0800
+++ b/candolint/handlers.py Tue Aug 23 01:33:56 2016 +0800
@@ -63,11 +63,11 @@
class IndexHandler(BaseHandler):
def get(self):
checks = (Check
- .select(Project, Change, *Check.get_light_fields())
- .join(Project)
- .switch(Check)
- .join(Change)
- .group_by(Check.project))
+ .select(Project, Change, *Check.get_light_fields())
+ .join(Project)
+ .switch(Check)
+ .join(Change)
+ .group_by(Check.project))
self.render('index.html', checks=checks)
@@ -75,10 +75,10 @@
def get(self, domain, user, name):
project = get_project_or_404(domain, user, name)
checks = (Check
- .select(Change, *Check.get_light_fields())
- .join(Change)
- .where(Check.project == project)
- .limit(30))
+ .select(Change, *Check.get_light_fields())
+ .join(Change)
+ .where(Check.project == project)
+ .limit(30))
self.render('project.html', project=project, checks=checks)