Hendrik Schroeter commited on
Commit
0b0666f
1 Parent(s): 1316b18

Do not print filter every loop

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -253,12 +253,12 @@ def spec_im(
253
 
254
  def cleanup_tmp(filter: List[str] = [], hours_keep=2):
255
  filter.append("p232")
256
- logger.info(f"{filter}")
257
  # Cleanup some old wav files
258
  if os.path.exists("/tmp"):
259
  for f in glob.glob("/tmp/*"):
 
260
  is_old = (time.time() - os.path.getmtime(f)) / 3600 > hours_keep
261
- print(f"got filter {filter}")
262
  filtered = any(filt in f for filt in filter if filt is not None)
263
  if is_old and not filtered:
264
  try:
 
253
 
254
  def cleanup_tmp(filter: List[str] = [], hours_keep=2):
255
  filter.append("p232")
256
+ logger.info(f"Filter: {filter}")
257
  # Cleanup some old wav files
258
  if os.path.exists("/tmp"):
259
  for f in glob.glob("/tmp/*"):
260
+ print(f"Got file {f}")
261
  is_old = (time.time() - os.path.getmtime(f)) / 3600 > hours_keep
 
262
  filtered = any(filt in f for filt in filter if filt is not None)
263
  if is_old and not filtered:
264
  try: