@@ -130,7 +130,7 @@ def get_next_job(db,repeat=False,repkw=None,repnum=None):
result['kw']=repkw
result['num']=repnum
- if repkw=='REP':
+ if 'REP' in repkw:
# 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')