ChaterJee 0.5.7__py3-none-any.whl → 0.5.9__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 +7 -7
- {chaterjee-0.5.7.dist-info → chaterjee-0.5.9.dist-info}/METADATA +1 -1
- chaterjee-0.5.9.dist-info/RECORD +6 -0
- chaterjee-0.5.7.dist-info/RECORD +0 -6
- {chaterjee-0.5.7.dist-info → chaterjee-0.5.9.dist-info}/WHEEL +0 -0
- {chaterjee-0.5.7.dist-info → chaterjee-0.5.9.dist-info}/top_level.txt +0 -0
ChaterJee/ChaterJee.py
CHANGED
@@ -111,9 +111,9 @@ class ChatLogs:
|
|
111
111
|
jobs_file = self.home / ".data" / "JOB_status.json"
|
112
112
|
with open(jobs_file, 'r') as ffr:
|
113
113
|
jobs = json.load(ffr)
|
114
|
-
self.jobs = jobs
|
114
|
+
#self.jobs = jobs
|
115
|
+
reply_keyboard = [[f'JOB: {job}'] for job in list(jobs.keys())][::-1] # inverse to show latest jobs on top
|
115
116
|
|
116
|
-
reply_keyboard = [[f'{job}'] for job in list(self.jobs.keys())[::-1]] # inverse to show latest jobs on top
|
117
117
|
await context.bot.sendChatAction(chat_id=self.CHATID, action="typing")
|
118
118
|
msg = await update.message.reply_text("Select a job to get updates on",\
|
119
119
|
reply_markup=ReplyKeyboardMarkup(reply_keyboard, one_time_keyboard=True, resize_keyboard=True, input_field_placeholder="Select the job."\
|
@@ -124,12 +124,12 @@ class ChatLogs:
|
|
124
124
|
|
125
125
|
async def StatJobs(self, update: Update, context: ContextTypes.DEFAULT_TYPE):
|
126
126
|
self.smsID.append(update.message.message_id)
|
127
|
-
job_name = update.message.text
|
127
|
+
job_name = update.message.text[5:]
|
128
128
|
|
129
129
|
jobs_file = self.home / ".data" / "JOB_status.json"
|
130
130
|
with open(jobs_file, 'r') as ffr:
|
131
131
|
jobs = json.load(ffr)
|
132
|
-
self.jobs = jobs
|
132
|
+
#self.jobs = jobs
|
133
133
|
|
134
134
|
logDIR = Path(jobs[job_name]['logDIR'])
|
135
135
|
logFILE = jobs[job_name]['logFILE']
|
@@ -149,11 +149,12 @@ class ChatLogs:
|
|
149
149
|
elif logDICT is not None:
|
150
150
|
self.txt = self.txt + '\n\n'
|
151
151
|
for key, value in logDICT.items():
|
152
|
-
self.txt = self.txt + f"{key}
|
152
|
+
self.txt = self.txt + f"*{key}*: {value}\n"
|
153
153
|
|
154
154
|
await context.bot.sendChatAction(chat_id=self.CHATID, action="typing")
|
155
155
|
msg = await update.message.reply_text(
|
156
|
-
self.txt, reply_markup=ReplyKeyboardRemove()
|
156
|
+
self.txt, reply_markup=ReplyKeyboardRemove(),
|
157
|
+
parse_mode='Markdown'
|
157
158
|
)
|
158
159
|
self.smsID.append(msg.message_id)
|
159
160
|
|
@@ -467,7 +468,6 @@ class NoteLogs:
|
|
467
468
|
self.save_job_JSON()
|
468
469
|
|
469
470
|
def save_job_JSON(self, logDICT: str = None):
|
470
|
-
self.jobNAME = f"JOB: {self.jobNAME}"
|
471
471
|
_data = self.home / ".data"
|
472
472
|
_data.mkdir(exist_ok=True)
|
473
473
|
jobs_file = _data / "JOB_status.json"
|
@@ -0,0 +1,6 @@
|
|
1
|
+
ChaterJee/ChaterJee.py,sha256=GGWuqsi89yfgJMVbvDxTY21qSew_5zbSZsXBFLrEjK8,20075
|
2
|
+
ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
|
3
|
+
chaterjee-0.5.9.dist-info/METADATA,sha256=EPC3B_0JZtYZTK1ZVAmvNnFahahlWTBRR7sLsvH9ndc,6723
|
4
|
+
chaterjee-0.5.9.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
5
|
+
chaterjee-0.5.9.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
|
6
|
+
chaterjee-0.5.9.dist-info/RECORD,,
|
chaterjee-0.5.7.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
ChaterJee/ChaterJee.py,sha256=_pwPhoD_yaKC2ABHzqQxkyAz-YdmQk2Idq4Vav2oW14,20078
|
2
|
-
ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
|
3
|
-
chaterjee-0.5.7.dist-info/METADATA,sha256=SQ_6BAyY2kbKwdthB_WZKo_-C0xcUGgCnlirwExEbAw,6723
|
4
|
-
chaterjee-0.5.7.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
5
|
-
chaterjee-0.5.7.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
|
6
|
-
chaterjee-0.5.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|