ChaterJee 0.1.3__py3-none-any.whl → 0.1.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ChaterJee/ChaterJee.py +3 -2
- {chaterjee-0.1.3.dist-info → chaterjee-0.1.5.dist-info}/METADATA +1 -1
- chaterjee-0.1.5.dist-info/RECORD +6 -0
- chaterjee-0.1.3.dist-info/RECORD +0 -6
- {chaterjee-0.1.3.dist-info → chaterjee-0.1.5.dist-info}/WHEEL +0 -0
- {chaterjee-0.1.3.dist-info → chaterjee-0.1.5.dist-info}/top_level.txt +0 -0
ChaterJee/ChaterJee.py
CHANGED
@@ -254,7 +254,8 @@ class ChatLogs:
|
|
254
254
|
logFILE = jobs[job_name]['logFILE']
|
255
255
|
logIMAGE = jobs[job_name]['logIMAGE']
|
256
256
|
|
257
|
-
txt = get_last_line(logDIR / logFILE)
|
257
|
+
txt = self.get_last_line(logDIR / logFILE)
|
258
|
+
|
258
259
|
if txt is not None:
|
259
260
|
msg = await context.bot.send_message(chat_id=self.CHATID, text=txt)
|
260
261
|
self.smsID.append(msg.message_id)
|
@@ -268,7 +269,7 @@ class ChatLogs:
|
|
268
269
|
|
269
270
|
return ConversationHandler.END
|
270
271
|
|
271
|
-
def get_last_line(filepath):
|
272
|
+
def get_last_line(self, filepath):
|
272
273
|
with open(filepath, 'rb') as f:
|
273
274
|
# Go to the end of file
|
274
275
|
f.seek(0, 2)
|
@@ -0,0 +1,6 @@
|
|
1
|
+
ChaterJee/ChaterJee.py,sha256=lZHxSHQx2AtlEcW7dbqsfZ53YyWkrhJCGNoGtxOyO-w,14411
|
2
|
+
ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
|
3
|
+
chaterjee-0.1.5.dist-info/METADATA,sha256=zVci81ZaQAZ3QAJczY1lAIUXi0ie8ZxmrCXnSGFONks,340
|
4
|
+
chaterjee-0.1.5.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
5
|
+
chaterjee-0.1.5.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
|
6
|
+
chaterjee-0.1.5.dist-info/RECORD,,
|
chaterjee-0.1.3.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
ChaterJee/ChaterJee.py,sha256=UJ6RFrNrVjFVlO488tgYXhQukhNp1iiF1oLT1mmypqY,14399
|
2
|
-
ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
|
3
|
-
chaterjee-0.1.3.dist-info/METADATA,sha256=Nl_q6whlokSPBfk-2EhqEenAnprOf6kpsUvFGVZBv2Q,340
|
4
|
-
chaterjee-0.1.3.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
5
|
-
chaterjee-0.1.3.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
|
6
|
-
chaterjee-0.1.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|