[tor-commits] [gettor/master] Fix links script

hiro at torproject.org hiro at torproject.org
Fri Sep 27 14:56:36 UTC 2019


commit 919caf08b3ba3a65c91456e5cb7f021829d93351
Author: hiro <hiro at torproject.org>
Date:   Fri Sep 27 16:56:33 2019 +0200

    Fix links script
---
 scripts/add_links_to_db | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/add_links_to_db b/scripts/add_links_to_db
index 74d4b69..72f557a 100755
--- a/scripts/add_links_to_db
+++ b/scripts/add_links_to_db
@@ -133,15 +133,15 @@ def main():
         """
         c.execute("DROP TABLE IF EXISTS links")
         c.execute(
-            "CREATE TABLE links(link TEXT, platform TEXT, language TEXT, arch TEXT,"
-            " version TEXT, provider TEXT, status TEXT)"
+            "CREATE TABLE links(link TEXT, platform TEXT, language TEXT,"
+            " arch TEXT, version TEXT, provider TEXT, status TEXT, file TEXT)"
         )
         for k in keys:
             for p in providers:
                 for l in languages:
                     release_link = releases.get(k).replace("en-US", l)
                     c.execute(
-                        "INSERT INTO links(link, platform, language, arch, version, provider, status)"
+                        "INSERT INTO links(link, platform, language, arch, version, provider, status, file)"
                         "VALUES ('%s', '%s', '%s', '64', '%s', '%s', 'ACTIVE', '%s')" % (providers.get(p) + release_link, k, l, version, p, release_link))
 
 



More information about the tor-commits mailing list