|
@@ -51,6 +51,8 @@ class DBDownload:
|
|
|
self.cursor.execute("select %s from %s where factory='%s'" %(str,tablename,factory))
|
|
|
elif self.mode==3:
|
|
|
self.cursor.execute("select %s from %s" %(str,tablename))
|
|
|
+ elif self.mode==4:
|
|
|
+ self.cursor.execute("select %s from %s where qrcode='%s' order by id desc limit 1" %(str,tablename,sn))
|
|
|
res = self.cursor.fetchall()
|
|
|
df_res = pd.DataFrame(res, columns=param)
|
|
|
df_res = df_res.reset_index(drop=True)
|