Skip to content

Commit

Permalink
Add constants that were lost due to merge
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhoerstr committed Aug 21, 2024
1 parent 0c467fc commit 9a49858
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pfdl_scheduler/utils/dashboard_observer.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ def update(self, notification_type: NotificationType, data: Any) -> None:
if notification_type == NotificationType.PETRI_NET:
if not self.order_finished:
content = ""
with open("temp/" + self.scheduler_uuid + ".dot") as file:
with open(PETRI_NET_FILE_LOCATION + self.scheduler_uuid + "." + PETRI_NET_TYPE) as file:
content = file.read()

request_data = {
"order_uuid": self.scheduler_uuid,
"content": content,
"type_pn": "dot",
"type_pn": PETRI_NET_TYPE,
}
message_queue.put((self.host + "/petri_net", request_data))
message_queue.put((self.host + PETRI_NET_ROUTE, request_data))

elif notification_type == NotificationType.LOG_EVENT:
log_event = data[0]
Expand Down

0 comments on commit 9a49858

Please sign in to comment.