Skip to content

Commit

Permalink
ignore some activities (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
likesclever authored May 18, 2023
1 parent 6b02fc0 commit 2a3ce7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion events/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,9 @@ def generate_activity_records(added_files, deleted_files, added_dirs,
records.append(record)

for record in records:
if os.path.dirname(record['path']) in ['/images/auto-upload', '/images/sdoc']:
if os.path.dirname(record['path']).startswith('/images/auto-upload'):
records.remove(record)
if os.path.dirname(record['path']).startswith('/images/sdoc'):
records.remove(record)
if 'old_path' in record:
record['old_path'] = record['old_path'].rstrip('/')
Expand Down

0 comments on commit 2a3ce7f

Please sign in to comment.