MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / _replace_in_part

Method _replace_in_part

core/models.py:145–149  ·  view source on GitHub ↗
(self, part, replacements)

Source from the content-addressed store, hash-verified

143 return cmd
144
145 def _replace_in_part(self, part, replacements):
146 # Iterate through the replacements and replace each part of the string
147 for key, value in replacements.items():
148 part = part.replace(key, value)
149 return part
150
151
152class OutputProfile(models.Model):

Callers 1

build_commandMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected