Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2103)

Unified Diff: tools/lua/gradients.py

Issue 2160583002: Add filename to gradient scrape (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix line length problem Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/lua/gradients.lua ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/lua/gradients.py
diff --git a/tools/lua/gradients.py b/tools/lua/gradients.py
index 0fa4c49775d3c09d8a380461bfc6ad19982e14cd..65ced5e854a38b49c5a2f9ec3c1321a70b6622c6 100755
--- a/tools/lua/gradients.py
+++ b/tools/lua/gradients.py
@@ -12,6 +12,7 @@ def create_database(inpath, outpath):
with sqlite3.connect(outpath) as conn:
c = conn.cursor();
c.execute('''CREATE TABLE IF NOT EXISTS gradients (
+ FileName TEXT,
ColorCount INTEGER,
GradientType TEXT,
TileMode TEXT,
@@ -27,8 +28,9 @@ def create_database(inpath, outpath):
for line in [line.strip() for line in results]:
gradients.append(line.split());
- c.executemany("INSERT INTO gradients VALUES (?, ?, ?, ?, ?, ?, ?)",
- gradients);
+ c.executemany(
+ "INSERT INTO gradients VALUES (?, ?, ?, ?, ?, ?, ?, ?)",
+ gradients);
conn.commit();
« no previous file with comments | « tools/lua/gradients.lua ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698