Properly renamed single_shot_entry to single_entry
This commit is contained in:
@@ -13,7 +13,7 @@ from .parse_error_entry import ParseErrorEntry
|
||||
from .read_entry import ReadEntry
|
||||
from .reasoning_entry import ReasoningEntry
|
||||
from .repeat_entry import RepeatEntry
|
||||
from .single_shot_entry import SingleShotEntry
|
||||
from .single_entry import SingleEntry
|
||||
from .write_entry import WriteEntry
|
||||
|
||||
class ResponseParser:
|
||||
@@ -125,11 +125,11 @@ class ResponseParser:
|
||||
return ParseErrorEntry(xml, "Repeat entry missing script content", entry_id, timestamp)
|
||||
return RepeatEntry(content, entry_id, timestamp)
|
||||
|
||||
elif root.tag == 'single_shot':
|
||||
elif root.tag == 'single':
|
||||
# Create single shot script entry
|
||||
if not content:
|
||||
return ParseErrorEntry(xml, "Single shot entry missing script content", entry_id, timestamp)
|
||||
return SingleShotEntry(content, entry_id, timestamp)
|
||||
return SingleEntry(content, entry_id, timestamp)
|
||||
|
||||
elif root.tag == 'reasoning':
|
||||
# Create reasoning entry
|
||||
|
||||
@@ -6,7 +6,7 @@ from typing import Optional
|
||||
from .entry import Entry
|
||||
from .util import escape_text_for_xml
|
||||
|
||||
class SingleShotEntry(Entry):
|
||||
class SingleEntry(Entry):
|
||||
"""
|
||||
Entry type for one-time script executions.
|
||||
|
||||
@@ -98,7 +98,7 @@ class SingleShotEntry(Entry):
|
||||
ET.Element: XML element containing the entry's data
|
||||
"""
|
||||
# Create root element
|
||||
element = ET.Element("single_shot", {
|
||||
element = ET.Element("single", {
|
||||
"id": self.id,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user