Parcourir la source

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

Rafael Arce Nazario il y a 6 ans
Parent
révision
b0ccfd0e0a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      tp-smart-process.py

+ 1
- 1
tp-smart-process.py Voir le fichier

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