ChaterJee 0.5.7__py3-none-any.whl → 0.5.8__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 +4 -5
- {chaterjee-0.5.7.dist-info → chaterjee-0.5.8.dist-info}/METADATA +1 -1
- chaterjee-0.5.8.dist-info/RECORD +6 -0
- chaterjee-0.5.7.dist-info/RECORD +0 -6
- {chaterjee-0.5.7.dist-info → chaterjee-0.5.8.dist-info}/WHEEL +0 -0
- {chaterjee-0.5.7.dist-info → chaterjee-0.5.8.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']
|
@@ -467,7 +467,6 @@ class NoteLogs:
|
|
467
467
|
self.save_job_JSON()
|
468
468
|
|
469
469
|
def save_job_JSON(self, logDICT: str = None):
|
470
|
-
self.jobNAME = f"JOB: {self.jobNAME}"
|
471
470
|
_data = self.home / ".data"
|
472
471
|
_data.mkdir(exist_ok=True)
|
473
472
|
jobs_file = _data / "JOB_status.json"
|
@@ -0,0 +1,6 @@
|
|
1
|
+
ChaterJee/ChaterJee.py,sha256=eMJsCABDx9eqGXVSjszlZT_DOKp7WSkrL6q5RAyZZwU,20038
|
2
|
+
ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
|
3
|
+
chaterjee-0.5.8.dist-info/METADATA,sha256=F76DaXzKdOGId0h23vb5ELTVsVY7cvy1kGRgaffl6tQ,6723
|
4
|
+
chaterjee-0.5.8.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
5
|
+
chaterjee-0.5.8.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
|
6
|
+
chaterjee-0.5.8.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
|