ChaterJee 0.1.4__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 +2 -3
- {chaterjee-0.1.4.dist-info → chaterjee-0.1.5.dist-info}/METADATA +1 -1
- chaterjee-0.1.5.dist-info/RECORD +6 -0
- chaterjee-0.1.4.dist-info/RECORD +0 -6
- {chaterjee-0.1.4.dist-info → chaterjee-0.1.5.dist-info}/WHEEL +0 -0
- {chaterjee-0.1.4.dist-info → chaterjee-0.1.5.dist-info}/top_level.txt +0 -0
ChaterJee/ChaterJee.py
CHANGED
@@ -254,8 +254,7 @@ 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)
|
258
|
-
print(txt)
|
257
|
+
txt = self.get_last_line(logDIR / logFILE)
|
259
258
|
|
260
259
|
if txt is not None:
|
261
260
|
msg = await context.bot.send_message(chat_id=self.CHATID, text=txt)
|
@@ -270,7 +269,7 @@ class ChatLogs:
|
|
270
269
|
|
271
270
|
return ConversationHandler.END
|
272
271
|
|
273
|
-
def get_last_line(filepath):
|
272
|
+
def get_last_line(self, filepath):
|
274
273
|
with open(filepath, 'rb') as f:
|
275
274
|
# Go to the end of file
|
276
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.4.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
ChaterJee/ChaterJee.py,sha256=-17yJSGxyC6d8oNMf3shA-qHumc6NNkwZCKnac4k3-8,14419
|
2
|
-
ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
|
3
|
-
chaterjee-0.1.4.dist-info/METADATA,sha256=6CrO07bry9_QZ5CpDcORfzMaBl3jVumAwutavgDOgx8,340
|
4
|
-
chaterjee-0.1.4.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
5
|
-
chaterjee-0.1.4.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
|
6
|
-
chaterjee-0.1.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|