Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get summary without feature flag #837

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

frimpongopoku
Copy link
Contributor

  • If there are no feature flags, it will summarise duplicates for all communities

@@ -33,7 +33,10 @@ def remove_duplicate_images(task):
print("Generating hashes")
result = media_store.generate_hashes(None, None, None)

communities = flag.enabled_communities()
if flag and do_updates:
communities = flag.enabled_communities()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if the flag is enabled, but no communities selected, this will produce an empty queryset and it will not do any reporting on duplicates, but probably blow up.

@BradHN1
Copy link
Contributor

BradHN1 commented Nov 9, 2023

There is some test code that got in there, my mistake. Note two calls to generate_hashes where I had added one before I saw you had. Also an IF_LOCAL in the MEDIA_LIBRARY - doesnt' do anything except print out.

@archx3
Copy link
Contributor

archx3 commented Jun 19, 2024

@frimpongopoku @BradHN1 is this PR still useful?
I'd like to archive it if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants