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

Fix consolidacion #103

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Fix consolidacion #103

wants to merge 4 commits into from

Conversation

miguelpagano
Copy link
Contributor

Este PR agrega un flag que controla si se ejecuta automáticamente el calculador de trolling. Los tests asumen que sí se hace el anti-trolling.

Además simplificamos un poco el código de consolidación.

Closes escrutinio-social-peru#2

@@ -471,6 +471,10 @@
# Ver csv_import.py
OPCIONES_CARGAS_TOTALES_COMPLETAS = True

# Flag para decidir si usamos el mecanismo de trolling automático.
# Independientemente de este flag, se pueden marcar trolls desde el admin.
CON_ANTITROLLING = True
Copy link
Contributor

Choose a reason for hiding this comment

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

en vez de hacer esto, no es posible simplemente comentar "antitrolling" de las INSTALLED_APPS ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pero entonces habría que sacar todos los imports de antitrolling o hacerlos condicionales a que esté la aplicación. ¿Cuál es la contra de esto?

Comment on lines +310 to +311
con_error |= (ids_a_procesar & identificaciones_ids)
ids_a_procesar -= identificaciones_ids
Copy link
Contributor

Choose a reason for hiding this comment

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

🙌🏽

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.

None yet

2 participants