Commit 919caf08 authored by Hiro's avatar Hiro 🏄
Browse files

Fix links script

parent 9b76daba
...@@ -133,15 +133,15 @@ def main(): ...@@ -133,15 +133,15 @@ def main():
""" """
c.execute("DROP TABLE IF EXISTS links") c.execute("DROP TABLE IF EXISTS links")
c.execute( c.execute(
"CREATE TABLE links(link TEXT, platform TEXT, language TEXT, arch TEXT," "CREATE TABLE links(link TEXT, platform TEXT, language TEXT,"
" version TEXT, provider TEXT, status TEXT)" " arch TEXT, version TEXT, provider TEXT, status TEXT, file TEXT)"
) )
for k in keys: for k in keys:
for p in providers: for p in providers:
for l in languages: for l in languages:
release_link = releases.get(k).replace("en-US", l) release_link = releases.get(k).replace("en-US", l)
c.execute( 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)) "VALUES ('%s', '%s', '%s', '64', '%s', '%s', 'ACTIVE', '%s')" % (providers.get(p) + release_link, k, l, version, p, release_link))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment