Skip to content

Commit

Permalink
fix incorrect message suffix for discriminating files/messages
Browse files Browse the repository at this point in the history
  • Loading branch information
redshiftzero committed Mar 11, 2019
1 parent e29351f commit 379c516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions securedrop_client/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def update_local_storage(session, remote_sources, remote_submissions,
local_messages = get_local_messages(session)
local_replies = get_local_replies(session)

remote_messages = [x for x in remote_submissions if x.filename.endswith('.msg.gpg')]
remote_files = [x for x in remote_submissions if not x.filename.endswith('.msg.gpg')]
remote_messages = [x for x in remote_submissions if x.filename.endswith('msg.gpg')]
remote_files = [x for x in remote_submissions if not x.filename.endswith('msg.gpg')]

update_sources(remote_sources, local_sources, session, data_dir)
update_files(remote_files, local_files, session, data_dir)
Expand Down

0 comments on commit 379c516

Please sign in to comment.