Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: sitescripts/reports/bin/processReports.py

Issue 8793015: Reports - user profile (Closed)
Patch Set: Created Nov. 6, 2012, 2:05 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 # coding: utf-8 1 # coding: utf-8
2 2
3 # This file is part of the Adblock Plus web scripts, 3 # This file is part of the Adblock Plus web scripts,
4 # Copyright (C) 2006-2012 Eyeo GmbH 4 # Copyright (C) 2006-2012 Eyeo GmbH
5 # 5 #
6 # Adblock Plus is free software: you can redistribute it and/or modify 6 # Adblock Plus is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License version 3 as 7 # it under the terms of the GNU General Public License version 3 as
8 # published by the Free Software Foundation. 8 # published by the Free Software Foundation.
9 # 9 #
10 # Adblock Plus is distributed in the hope that it will be useful, 10 # Adblock Plus is distributed in the hope that it will be useful,
(...skipping 22 matching lines...) Expand all
33 cursor.close() 33 cursor.close()
34 if len(rows) == 0: 34 if len(rows) == 0:
35 break 35 break
36 for row in rows: 36 for row in rows:
37 yield row 37 yield row
38 offset += len(rows) 38 offset += len(rows)
39 39
40 def processReports(): 40 def processReports():
41 for report in getReports(): 41 for report in getReports():
42 guid = report.get('guid', None) 42 guid = report.get('guid', None)
43 print >>sys.stderr, guid
Wladimir Palant 2012/11/07 08:38:15 Debug code?
Andrey Novikov 2012/11/07 09:38:48 Sorry, this file should not be in the review at al
43 reportData = getReport(guid) 44 reportData = getReport(guid)
44 if 'screenshot' in reportData: 45 #if 'screenshot' in reportData:
45 saveReport(guid, reportData) 46 saveReport(guid, reportData)
Wladimir Palant 2012/11/07 08:38:15 Here as well?
46 47
47 if __name__ == '__main__': 48 if __name__ == '__main__':
48 setupStderr() 49 setupStderr()
49 processReports() 50 processReports()
OLDNEW

Powered by Google App Engine
This is Rietveld