Skip to content

Commit

Permalink
fixed record compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubkrafka committed Aug 12, 2021
1 parent b59fa1f commit 055e035
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion process/management/commands/record_compiler.py
Expand Up @@ -41,14 +41,19 @@ def process(self, connection, channel, delivery_tag, body):

self._deleteStep(ProcessingStep.Types.COMPILE, collection_id=collection_id, ocid=ocid)

compiled_collection = Collection.objects.get(id=input_message["collection_id"])

release_id = None
release_collection_id = None

if release:
release_id = release.pk

# publish message about processed item
message = {
"ocid": ocid,
"compiled_release_id": release_id,
"collection_id": collection_id,
"collection_id": compiled_collection.id,
}

self._publish_async(connection, channel, json.dumps(message))
Expand Down

0 comments on commit 055e035

Please sign in to comment.