Fix bug in extractor script
authorbdemsky <bdemsky@uci.edu>
Fri, 2 Aug 2019 01:45:07 +0000 (18:45 -0700)
committerbdemsky <bdemsky@uci.edu>
Fri, 2 Aug 2019 01:45:07 +0000 (18:45 -0700)
Extractor/ExtractorScript.py

index 4bc7306..9e0f1c1 100644 (file)
@@ -297,6 +297,8 @@ def ExtractEvents(extractedEvents):
                                event = open("eventSimulator/beaconLeftEvent.groovy", "r")
                        for line in event:
                                extractedEvents.write("\t\t" + line)
                                event = open("eventSimulator/beaconLeftEvent.groovy", "r")
                        for line in event:
                                extractedEvents.write("\t\t" + line)
+
+                        extractedEvents.write("\t\t\t}\n")
                        event.close()
                elif eventList[i] == "presence.present": #Case for Touched event
                        event = open("eventSimulator/presencePresencePresentEvent.groovy", "r")
                        event.close()
                elif eventList[i] == "presence.present": #Case for Touched event
                        event = open("eventSimulator/presencePresencePresentEvent.groovy", "r")