Commit f0401ce0 authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

Fix update text functional

parent 069a3683
...@@ -50,7 +50,7 @@ class NewsUpdater: ...@@ -50,7 +50,7 @@ class NewsUpdater:
# try: # try:
text = self.load_text(i[1]) text = self.load_text(i[1])
data = (text.encode('ascii', 'ignore'), i[0]) data = (text.encode('ascii', 'ignore'), i[0])
self.update_news('update wp_esi_news_accept set text="%s" where id=%s', data) self.update_news('update wp_esi_news_accept set text=%s where id=%s', data)
print('News id={} was updated'.format(i[0])) print('News id={} was updated'.format(i[0]))
# except BaseException as e: # except BaseException as e:
# print(e.with_traceback()) # print(e.with_traceback())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment