|
@@ -123,7 +123,9 @@ def get_next_job(db,repeat=False,repkw=None,repnum=None):
|
|
|
result['num']=repnum
|
|
|
|
|
|
if repkw=='REP':
|
|
|
- cursor = db.query('select lat_txt,lon_txt,keyword,num from swire_store_list order by rand() limit 1')
|
|
|
+# cursor = db.query('select lat_txt,lon_txt,keyword,num from swire_store_list order by rand() limit 1')
|
|
|
+ cursor = db.query('select lat_txt,lon_txt,keyword,num from swire_store_list where num="'+str(repnum)+'" limit 1')
|
|
|
+
|
|
|
for c in cursor:
|
|
|
result['kw']=c['keyword']
|
|
|
result['num']=c['num']
|