|
@@ -210,8 +210,9 @@ def main():
|
|
|
|
|
|
|
|
if args.limit:
|
|
if args.limit:
|
|
|
query += ' limit {}'.format(args.limit)
|
|
query += ' limit {}'.format(args.limit)
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
cursor.execute(query)
|
|
cursor.execute(query)
|
|
|
|
|
+ curup = conn.cursor()
|
|
|
|
|
|
|
|
for row in cursor:
|
|
for row in cursor:
|
|
|
the_hash, filename, = row
|
|
the_hash, filename, = row
|
|
@@ -219,7 +220,6 @@ def main():
|
|
|
if match:
|
|
if match:
|
|
|
station_code = match.group(1)
|
|
station_code = match.group(1)
|
|
|
params = station_code, the_hash,
|
|
params = station_code, the_hash,
|
|
|
- curup = conn.cursor()
|
|
|
|
|
curup.execute(('update "file" '
|
|
curup.execute(('update "file" '
|
|
|
'set "station" = ? '
|
|
'set "station" = ? '
|
|
|
'where "hash" = ?'
|
|
'where "hash" = ?'
|