renanqts / pinger Goto Github PK
View Code? Open in Web Editor NEWPinger - Script to monitor device by Telegram
Pinger - Script to monitor device by Telegram
I got a following traceback when execute listener.py.
Somebody can help me what's wrong at my side?
Thanks in advance!
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/telegram/ext/dispatcher.py", line 343, in process_update
handler.handle_update(update, self, check, context)
File "/usr/local/lib/python2.7/dist-packages/telegram/ext/handler.py", line 120, in handle_update
return self.callback(dispatcher.bot, update, **optional_args)
File "listener.py", line 41, in cmd_start
if checkUserRead(chat_id,bot):
File "listener.py", line 30, in checkUserRead
result = db.checkUser(chat_id)
File "/home/pi/scripts/pinger/database.py", line 222, in checkUser
self.cursor.execute("SELECT level FROM pinger.user WHERE telegram_id = %s", (telegram_id))
File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 234, in execute
args = tuple(map(db.literal, args))
TypeError: argument 2 to map() must support iteration
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.