DevangMahesh commited on
Commit
b06d4e9
·
1 Parent(s): f62b596

Fixes in the audio file deletion code

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -88,8 +88,8 @@ def notify_parent_of_exit():
88
  logger.error("The cleaner thread has exited. Check!!")
89
 
90
  def clean_up_audio_files(sender_id):
91
- command = f"rm -f /tmp/{sender_id}*"
92
- subprocess.run(command, text = True)
93
 
94
  # Your WhatsApp verification token
95
  VERIFY_TOKEN = os.getenv("WHATSAPP_VERIFY_TOKEN", "your_verification_token")
 
88
  logger.error("The cleaner thread has exited. Check!!")
89
 
90
  def clean_up_audio_files(sender_id):
91
+ command = f"rm -f /tmp/*{sender_id}*"
92
+ subprocess.run(command, text = True, shell = True)
93
 
94
  # Your WhatsApp verification token
95
  VERIFY_TOKEN = os.getenv("WHATSAPP_VERIFY_TOKEN", "your_verification_token")