canvas_sync 0.27.4 → 0.27.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d6f24c18ebf86f750d70099ea3e005f7036a757b37585c6b90e8cb8118320a6d
|
|
4
|
+
data.tar.gz: 1228fee5adaec59e4fbd29b464950d2a1a60e0f4d3d0fd2dfacdacb36ae800e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dad20a38ebc24dfb459f6993ad9a24e02a40f5a6c68c4403df3bb90500b0676857e07fb93a582fcd5b28c0a78501d823143c3364e93fbb9a3d9f40134a9af2da
|
|
7
|
+
data.tar.gz: fefc18626e5222c0402a399ca8caf3c131e9cebe0ce16df6233ce3cba9904839f0ffc7ccebe3deee2cd7695c2db33735957662935340695a63592385449a91ca
|
|
@@ -51,7 +51,7 @@ module CanvasSync
|
|
|
51
51
|
def process(file)
|
|
52
52
|
processor_class_name = options[:legacy_report_starter][:processor]
|
|
53
53
|
processor_class = processor_class_name.constantize
|
|
54
|
-
account_id = options[:account_id] ||
|
|
54
|
+
account_id = options[:account_id] || context[:account_id] || "self"
|
|
55
55
|
|
|
56
56
|
# The old processor signature: process(file_path, options, report_id)
|
|
57
57
|
# Note: The third param was report_id in ReportProcessorJob but was account_id in practice
|
|
@@ -216,7 +216,7 @@ module CanvasSync
|
|
|
216
216
|
|
|
217
217
|
case report_status["status"].downcase
|
|
218
218
|
when "complete"
|
|
219
|
-
ProcessJob.perform_later(report_status["attachment"]["url"])
|
|
219
|
+
report_task.class::ProcessJob.perform_later(report_status["attachment"]["url"])
|
|
220
220
|
when "error", "deleted"
|
|
221
221
|
max_tries = options[:report_max_tries] || batch_context[:report_max_tries] || report_task.max_tries || MAX_TRIES
|
|
222
222
|
report_attempt = batch_context[:report_attempt]
|
data/lib/canvas_sync/version.rb
CHANGED