diff --git a/version.py b/version.py index b8236f6..71680dd 100644 --- a/version.py +++ b/version.py @@ -2,6 +2,7 @@ # -*- coding: utf-8 -*- import psycopg2 +import wget import sys con = None @@ -14,8 +15,9 @@ try: cur = con.cursor() cur.execute('SELECT code, url FROM scrape.raw') - version = cur.fetchone()[1] - print(version) + urls = cur.fetchall() + for row in urls: + print(row[0],row[1]) except psycopg2.DatabaseError as e: