Skip to content

Commit 20ff3e0

Browse files
committed
SQLite Element added
1 parent ac076b3 commit 20ff3e0

File tree

10 files changed

+12
-130
lines changed

10 files changed

+12
-130
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
.pyc
22
setup.cfg
3+
4+
src/Pythonic/PythonicRPI.egg-info
5+
src/PythonicRPI.egg-info
6+
src/Pythonic.egg-info
7+
src/Pythonic/Pythonic.egg-info
8+
src/Pythonic/.vscode
9+
src/code-server/*.vsix
10+
src/code-server/*.rpm

examples/generic_pipe_0e7b8360.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ def execute(self):
3636
# Read from table several rows
3737
# SELECT * FROM my_table WHERE timestamp BETWEEN {} AND {}'.format( int(time.time())-12000, int(time.time()) )
3838

39+
# Sumup severals rows
40+
# SELECT SUM(value) FROM mytable WHERE timestamp BETWEEN {} AND {}
3941

40-
output = 'SELECT * FROM my_table WHERE timestamp BETWEEN {} AND {}'.format(int(time.time())-12000, int(time.time()))
42+
output = 'SELECT SUM(value) FROM my_table WHERE timestamp BETWEEN {} AND {}'.format(int(time.time())-12000, int(time.time()))
4143

4244

4345

src/Pythonic.egg-info/PKG-INFO

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/Pythonic.egg-info/SOURCES.txt

Lines changed: 0 additions & 84 deletions
This file was deleted.

src/Pythonic.egg-info/dependency_links.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Pythonic.egg-info/entry_points.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/Pythonic.egg-info/requires.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/Pythonic.egg-info/top_level.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Pythonic/executables/telegram.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def execute(self):
3636
self.return_queue.put(recordDone)
3737
return
3838

39-
4039
token = next(attr['Data'] for attr in specificConfig if attr['Name'] == 'Token')
4140

4241
if not token:
@@ -48,13 +47,11 @@ def execute(self):
4847

4948
dispatcher = updater.dispatcher
5049

51-
5250
def start(update: Update, context: CallbackContext):
5351

5452
chat_ids.add(update.message.chat_id)
5553
context.bot.send_message(chat_id=update.effective_chat.id, text="Hello, this chat ID is now registered for communication.")
5654

57-
5855
def unknown(update, context):
5956
context.bot.send_message(chat_id=update.effective_chat.id, text='Sorry, I didn\'t understand that command.')
6057

@@ -103,5 +100,4 @@ def message(update, context):
103100

104101

105102

106-
cmd = None
107-
103+
cmd = None
103 KB
Binary file not shown.

0 commit comments

Comments
 (0)