Bläddra i källkod

Corrected error caused by ResPerseptionEncryp files. Should only look at EncrypFile files

Rafael Arce Nazario 6 år sedan
förälder
incheckning
b0ccfd0e0a
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      tp-smart-process.py

+ 1
- 1
tp-smart-process.py Visa fil

@@ -77,7 +77,7 @@ def decryptFileAndProcess(encryptedFName):
77 77
 def latestUserFile(searchDir, userID):
78 78
     # search_dir = "/tmp/images/"
79 79
     print("Searching dir %s for latest file of userID: %s ...." % (searchDir, userID))
80
-    files = [f for f in glob.glob(searchDir + "/" +  userID + "-*") if os.path.isfile(f)]
80
+    files = [f for f in glob.glob(searchDir + "/" +  userID + "-*EncrypFile*") if os.path.isfile(f)]
81 81
     return max(files, key = lambda x: os.path.getmtime(x))
82 82
 
83 83