From 5c18c71d0182aeb1424dba1dcc54fb23929ef85c Mon Sep 17 00:00:00 2001 From: Roman Bazalevsky Date: Thu, 31 Jul 2014 15:55:04 +0400 Subject: [PATCH] Minor rewrites --- render_tiles.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/render_tiles.py b/render_tiles.py index a23b136..f181cbe 100644 --- a/render_tiles.py +++ b/render_tiles.py @@ -9,10 +9,14 @@ def queue_render(db,filename): conn = sqlite3.connect(db) cur = conn.cursor() - + cur.execute("select minlat,minlon,maxlat,maxlon from tracks where filename=?" , (filename.decode('UTF-8'),)) - - minlat,minlon,maxlat,maxlon=cur.fetchone() + minlat,minlon,maxlat,maxlon=cur.fetchone() + queue_tiles(db,minlat,minlon,maxlat,maxlon) + +def queue_tiles(db,minlat,minlon,maxlat,maxlon): + + conn = sqlite3.connect(db) # определяем примерный стартовый зум -- 2.34.1