Skip to content

Trigger aggregator update signal#186

Open
qasimgulzar wants to merge 3 commits intoopen-craft:masterfrom
qasimgulzar:master
Open

Trigger aggregator update signal#186
qasimgulzar wants to merge 3 commits intoopen-craft:masterfrom
qasimgulzar:master

Conversation

@qasimgulzar
Copy link

No description provided.

@qasimgulzar
Copy link
Author

@open-craft-grove could you please help reviewing this PR

Copy link
Member

@Agrendalath Agrendalath left a comment

Choose a reason for hiding this comment

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

@qasimgulzar, is there a specific reason for using plain signals instead of openedx-events?

else:
aggregation_data = [obj.get_values() for obj in updated_aggregators]
cur.executemany(INSERT_OR_UPDATE_AGGREGATOR_QUERY, aggregation_data)
AggregatorUpdate.send(sender=self.__class__, aggregation_data=aggregation_data)
Copy link
Member

Choose a reason for hiding this comment

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

Isn't aggregation_data undefined when connection.vendor == 'sqlite'?

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.

2 participants