Gitiles
Code Review
Sign In
git.clicks.codes
/
Clicks
/
Forks
/
ERPNext
/
e8928b8bff5305a1779c93d2a311bbb068f26eea
/
.
/
erpnext
/
website
/
page
/
unsubscribe
/
unsubscribe.py
blob: 57d1d47f8698018f589b873123f322464644dd3c [
file
] [
log
] [
blame
]
def
unsubscribe
(
arg
):
"""unsubscribe from lists"""
import
webnotes
lists
=
[[
'Blog Subscriber'
,
'name'
]]
for
l
in
lists
:
webnotes
.
conn
.
sql
(
"""delete from `tab%s` where %s=%s"""
%
(
l
[
0
],
l
[
1
],
'%s'
),
arg
)
webnotes
.
msgprint
(
'Unsubscribed!'
)