Browse Source

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

Rafael Arce Nazario 6 years ago
parent
commit
b0ccfd0e0a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tp-smart-process.py

+ 1
- 1
tp-smart-process.py View File

@@ -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