Successfully built RMASS message push module, sender id resolver from DM room and included processing for 204 HTTP response with no content when handling incoming JSON
This commit is contained in:
@@ -26,4 +26,15 @@ def resolveItem(action, item):
|
||||
if resolved[source] == key:
|
||||
resolved[source] = value
|
||||
|
||||
if "deconstruct" in action.resolve:
|
||||
for source, mutation in action.resolve["deconstruct"].items():
|
||||
deconstructed = str(resolved[source])
|
||||
|
||||
for item in mutation:
|
||||
|
||||
deconstructed = deconstructed.replace(str(item), "")
|
||||
print("DECONSTRUCT TESTING")
|
||||
print(deconstructed)
|
||||
resolved[source] = deconstructed
|
||||
print(resolved["sender"])
|
||||
return resolved
|
||||
|
||||
Reference in New Issue
Block a user