Updated database reading and filtering capabilities Added exports for readRow consumption
This commit is contained in:
@@ -6,6 +6,15 @@ alias = "uploadavatar"
|
||||
|
||||
showstatus = True
|
||||
|
||||
resolve = {
|
||||
"get": {
|
||||
#"sender": ["messageheaders", "userCard", "id"],
|
||||
"avatar": ["uploadimage"],
|
||||
#"username": ["messageheaders", "userCard", "username"],
|
||||
"avatar_hash": ["useravatar_hash"],
|
||||
},
|
||||
}
|
||||
|
||||
isrequest = True
|
||||
|
||||
method = "POST"
|
||||
@@ -27,4 +36,13 @@ requestdata = "useravatar"
|
||||
|
||||
outputs = {
|
||||
"uploadimage": "content_uri",
|
||||
}
|
||||
}
|
||||
|
||||
filters = [
|
||||
{
|
||||
"filterkey": "avatar_hash",
|
||||
"operator": "==",
|
||||
"filtervalue": {"outputs": "db_avatar_hash"},
|
||||
"print": f"User avatar up to date. Skipping {name}...",
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user